Trait IsSame

Source
pub trait IsSame<Rhs = Self>
where Rhs: ?Sized,
{ // Required method fn is_same(&self, other: &Rhs) -> bool; // Provided method fn is_not_same(&self, other: &Rhs) -> bool { ... } }
Expand description

Compares two versions of a piece of data to see if it has changed.

Required Methods§

Source

fn is_same(&self, other: &Rhs) -> bool

Returns true if the two values are identical.

Provided Methods§

Source

fn is_not_same(&self, other: &Rhs) -> bool

Equivalent to !self.is_same(other).

Implementations on Foreign Types§

Source§

impl IsSame for bool

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for char

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for f32

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for f64

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for i8

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for i16

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for i32

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for i64

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for i128

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for isize

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for str

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for u8

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for u16

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for u32

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for u64

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for u128

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for ()

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for usize

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for String

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl IsSame for TypeId

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<'a, T> IsSame for &'a T
where T: IsSame + ?Sized + 'a,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<'a, T> IsSame for [T]
where T: IsSame + 'a,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<Key> IsSame for BTreeSet<Key>
where Key: IsSame + Ord,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<Key, State> IsSame for HashSet<Key, State>
where Key: IsSame + Eq + Hash, State: BuildHasher,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<Key, Value> IsSame for BTreeMap<Key, Value>
where Key: IsSame + Ord, Value: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<Key, Value, State> IsSame for HashMap<Key, Value, State>
where Key: IsSame + Eq + Hash, Value: IsSame, State: BuildHasher,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<Rhs> IsSame<Rhs> for Path
where Rhs: AsRef<Path> + ?Sized,

Source§

fn is_same(&self, other: &Rhs) -> bool

Source§

impl<Rhs> IsSame<Rhs> for PathBuf
where Rhs: AsRef<Path> + ?Sized,

Source§

fn is_same(&self, other: &Rhs) -> bool

Source§

impl<T1> IsSame for (T1,)
where T1: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2> IsSame for (T1, T2)
where T1: IsSame, T2: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3> IsSame for (T1, T2, T3)
where T1: IsSame, T2: IsSame, T3: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3, T4> IsSame for (T1, T2, T3, T4)
where T1: IsSame, T2: IsSame, T3: IsSame, T4: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3, T4, T5> IsSame for (T1, T2, T3, T4, T5)
where T1: IsSame, T2: IsSame, T3: IsSame, T4: IsSame, T5: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3, T4, T5, T6> IsSame for (T1, T2, T3, T4, T5, T6)
where T1: IsSame, T2: IsSame, T3: IsSame, T4: IsSame, T5: IsSame, T6: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3, T4, T5, T6, T7> IsSame for (T1, T2, T3, T4, T5, T6, T7)
where T1: IsSame, T2: IsSame, T3: IsSame, T4: IsSame, T5: IsSame, T6: IsSame, T7: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T1, T2, T3, T4, T5, T6, T7, T8> IsSame for (T1, T2, T3, T4, T5, T6, T7, T8)
where T1: IsSame, T2: IsSame, T3: IsSame, T4: IsSame, T5: IsSame, T6: IsSame, T7: IsSame, T8: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 0]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 1]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 2]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 3]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 4]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 5]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 6]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 7]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 8]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 9]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 10]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 11]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 12]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 13]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 14]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 15]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 16]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 17]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 18]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 19]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 20]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 21]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 22]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 23]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 24]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 25]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 26]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 27]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 28]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 29]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 30]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 31]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for [T; 32]
where T: IsSame,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for Rc<T>
where T: ?Sized,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T> IsSame for Arc<T>
where T: ?Sized,

Source§

fn is_same(&self, other: &Self) -> bool

Source§

impl<T, Rhs> IsSame<Rhs> for Vec<T>
where T: IsSame, Rhs: AsRef<[T]> + ?Sized,

Source§

fn is_same(&self, other: &Rhs) -> bool

Implementors§