Struct mhost::diff::Difference
source · pub struct Difference<T: Eq> {
pub fields: Vec<T>,
}
Fields§
§fields: Vec<T>
Implementations§
source§impl<T: Eq> Difference<T>
impl<T: Eq> Difference<T>
pub fn new(fields: Vec<T>) -> Self
pub fn has_differences(&self) -> bool
pub fn differences(&self) -> &[T]
Trait Implementations§
source§impl<T: Ord + Eq> Ord for Difference<T>
impl<T: Ord + Eq> Ord for Difference<T>
source§fn cmp(&self, other: &Difference<T>) -> Ordering
fn cmp(&self, other: &Difference<T>) -> 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<T: PartialEq + Eq> PartialEq for Difference<T>
impl<T: PartialEq + Eq> PartialEq for Difference<T>
source§fn eq(&self, other: &Difference<T>) -> bool
fn eq(&self, other: &Difference<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd + Eq> PartialOrd for Difference<T>
impl<T: PartialOrd + Eq> PartialOrd for Difference<T>
source§fn partial_cmp(&self, other: &Difference<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Difference<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq + Eq> Eq for Difference<T>
impl<T: Eq> StructuralPartialEq for Difference<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Difference<T>where
T: RefUnwindSafe,
impl<T> Send for Difference<T>where
T: Send,
impl<T> Sync for Difference<T>where
T: Sync,
impl<T> Unpin for Difference<T>where
T: Unpin,
impl<T> UnwindSafe for Difference<T>where
T: UnwindSafe,
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.