Enum ComparisonResult
pub enum ComparisonResult {
Equal,
NotEqual,
LhsMissing,
RhsMissing,
BothMissing,
OneWithoutSemantics,
BothWithoutSemantics,
Unknown,
Confusing,
}
Expand description
The result of a pairwise comparison between two encodings.
Variants§
Equal
The encoding are equal.
NotEqual
The encodings are different.
LhsMissing
The left-hand side is missing.
RhsMissing
The right-hand side is missing.
BothMissing
Both sides are missing
OneWithoutSemantics
One side does not have semantics (but does have at least one encoding)
BothWithoutSemantics
Both sides do not have semantics (but do have encodings)
Unknown
Equivalence has not been determined
Confusing
Overlapping encodings on one side have conflicting semantics
Trait Implementations§
§impl Clone for ComparisonResult
impl Clone for ComparisonResult
§fn clone(&self) -> ComparisonResult
fn clone(&self) -> ComparisonResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ComparisonResult
impl Debug for ComparisonResult
§impl<'de> Deserialize<'de> for ComparisonResult
impl<'de> Deserialize<'de> for ComparisonResult
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for ComparisonResult
impl Hash for ComparisonResult
§impl PartialEq for ComparisonResult
impl PartialEq for ComparisonResult
§impl Serialize for ComparisonResult
impl Serialize for ComparisonResult
impl Copy for ComparisonResult
impl Eq for ComparisonResult
impl StructuralPartialEq for ComparisonResult
Auto Trait Implementations§
impl Freeze for ComparisonResult
impl RefUnwindSafe for ComparisonResult
impl Send for ComparisonResult
impl Sync for ComparisonResult
impl Unpin for ComparisonResult
impl UnwindSafe for ComparisonResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more