pub enum DiscreteSimilarity {
Equivalent,
Subequal,
Different,
}Variants§
Equivalent
Indicates that two types are the same.
For example:
i32andi32Result<i32, ()>andResult<i32, ()>
Subequal
Indicates that two types are partially equal.
For example:
- an unbound generic type
Tandi32 - an unbound generic type
TandOption<U>
Different
Indicates that two types are not similar at all.
For example:
i32andOption<bool>
Trait Implementations§
Source§impl Clone for DiscreteSimilarity
impl Clone for DiscreteSimilarity
Source§fn clone(&self) -> DiscreteSimilarity
fn clone(&self) -> DiscreteSimilarity
Returns a duplicate 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 moreSource§impl Debug for DiscreteSimilarity
impl Debug for DiscreteSimilarity
Source§impl Ord for DiscreteSimilarity
impl Ord for DiscreteSimilarity
Source§fn cmp(&self, other: &DiscreteSimilarity) -> Ordering
fn cmp(&self, other: &DiscreteSimilarity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DiscreteSimilarity
impl PartialEq for DiscreteSimilarity
Source§impl PartialOrd for DiscreteSimilarity
impl PartialOrd for DiscreteSimilarity
impl Copy for DiscreteSimilarity
impl Eq for DiscreteSimilarity
impl StructuralPartialEq for DiscreteSimilarity
Auto Trait Implementations§
impl Freeze for DiscreteSimilarity
impl RefUnwindSafe for DiscreteSimilarity
impl Send for DiscreteSimilarity
impl Sync for DiscreteSimilarity
impl Unpin for DiscreteSimilarity
impl UnwindSafe for DiscreteSimilarity
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