Trait bitflags::__core::cmp::Eq
[−]
[src]
pub trait Eq: PartialEq<Self> { }Trait for equality comparisons which are equivalence relations.
This means, that in addition to a == b and a != b being strict inverses, the equality must
be (for all a, b and c):
- reflexive:
a == a; - symmetric:
a == bimpliesb == a; and - transitive:
a == bandb == cimpliesa == c.
This property cannot be checked by the compiler, and therefore Eq implies
PartialEq, and has no extra methods.
This trait can be used with #[derive].
Implementors
impl<A, B, C, D, E, F, G, H, I, J, K, L> Eq for (A, B, C, D, E, F, G, H, I, J, K, L) where B: Eq, K: Eq, I: Eq, D: Eq, A: Eq, C: Eq, G: Eq, J: Eq, E: Eq, H: Eq, F: Eq, L: Eqimpl<A, B, C, D, E, F, G, H, I, J, K> Eq for (A, B, C, D, E, F, G, H, I, J, K) where H: Eq, E: Eq, A: Eq, B: Eq, G: Eq, I: Eq, D: Eq, J: Eq, F: Eq, K: Eq, C: Eqimpl<A, B, C, D, E, F, G, H, I, J> Eq for (A, B, C, D, E, F, G, H, I, J) where G: Eq, J: Eq, C: Eq, E: Eq, A: Eq, F: Eq, D: Eq, H: Eq, I: Eq, B: Eqimpl<A, B, C, D, E, F, G, H, I> Eq for (A, B, C, D, E, F, G, H, I) where C: Eq, B: Eq, F: Eq, D: Eq, G: Eq, E: Eq, I: Eq, A: Eq, H: Eqimpl<A, B, C, D, E, F, G, H> Eq for (A, B, C, D, E, F, G, H) where A: Eq, E: Eq, C: Eq, G: Eq, F: Eq, D: Eq, H: Eq, B: Eqimpl<A, B, C, D, E, F, G> Eq for (A, B, C, D, E, F, G) where A: Eq, D: Eq, E: Eq, F: Eq, B: Eq, C: Eq, G: Eqimpl<A, B, C, D, E, F> Eq for (A, B, C, D, E, F) where D: Eq, F: Eq, C: Eq, B: Eq, A: Eq, E: Eqimpl<A, B, C, D, E> Eq for (A, B, C, D, E) where D: Eq, B: Eq, C: Eq, E: Eq, A: Eqimpl<A, B, C, D> Eq for (A, B, C, D) where D: Eq, B: Eq, A: Eq, C: Eqimpl<A, B, C> Eq for (A, B, C) where A: Eq, C: Eq, B: Eqimpl<A, B> Eq for (A, B) where B: Eq, A: Eqimpl<A> Eq for (A,) where A: Eqimpl Eq for strimpl<T> Eq for [T] where T: Eqimpl<T, E> Eq for Result<T, E> where T: Eq, E: Eqimpl<T> Eq for [T; 32] where T: Eqimpl<T> Eq for [T; 31] where T: Eqimpl<T> Eq for [T; 30] where T: Eqimpl<T> Eq for [T; 29] where T: Eqimpl<T> Eq for [T; 28] where T: Eqimpl<T> Eq for [T; 27] where T: Eqimpl<T> Eq for [T; 26] where T: Eqimpl<T> Eq for [T; 25] where T: Eqimpl<T> Eq for [T; 24] where T: Eqimpl<T> Eq for [T; 23] where T: Eqimpl<T> Eq for [T; 22] where T: Eqimpl<T> Eq for [T; 21] where T: Eqimpl<T> Eq for [T; 20] where T: Eqimpl<T> Eq for [T; 19] where T: Eqimpl<T> Eq for [T; 18] where T: Eqimpl<T> Eq for [T; 17] where T: Eqimpl<T> Eq for [T; 16] where T: Eqimpl<T> Eq for [T; 15] where T: Eqimpl<T> Eq for [T; 14] where T: Eqimpl<T> Eq for [T; 13] where T: Eqimpl<T> Eq for [T; 12] where T: Eqimpl<T> Eq for [T; 11] where T: Eqimpl<T> Eq for [T; 10] where T: Eqimpl<T> Eq for [T; 9] where T: Eqimpl<T> Eq for [T; 8] where T: Eqimpl<T> Eq for [T; 7] where T: Eqimpl<T> Eq for [T; 6] where T: Eqimpl<T> Eq for [T; 5] where T: Eqimpl<T> Eq for [T; 4] where T: Eqimpl<T> Eq for [T; 3] where T: Eqimpl<T> Eq for [T; 2] where T: Eqimpl<T> Eq for [T; 1] where T: Eqimpl<T> Eq for [T; 0] where T: Eqimpl Eq for i64impl Eq for i32impl Eq for i16impl Eq for i8impl Eq for isizeimpl Eq for u64impl Eq for u32impl Eq for u16impl Eq for u8impl Eq for usizeimpl Eq for charimpl Eq for boolimpl Eq for ()impl<T> Eq for *mut T where T: ?Sizedimpl<T> Eq for *const T where T: ?Sizedimpl<T> Eq for Option<T> where T: Eqimpl<T> Eq for Box<T> where T: Eq + ?Sizedimpl<T> Eq for Vec<T> where T: Eqimpl Eq for Stringimpl<T> Eq for Wrapping<T> where T: Eqimpl Eq for LocalKeyStateimpl<A> Eq for LinkedList<A> where A: Eqimpl<A> Eq for VecDeque<A> where A: Eqimpl<K, V> Eq for BTreeMap<K, V> where V: Eq, K: Eqimpl<T> Eq for BTreeSet<T> where T: Eqimpl<T> Eq for Bound<T> where T: Eqimpl<T> Eq for Arc<T> where T: Eq + ?Sizedimpl Eq for SearchStepimpl Eq for Utf8Errorimpl<T> Eq for Rc<T> where T: Eq + ?Sizedimpl<T> Eq for PhantomData<T> where T: ?Sizedimpl Eq for ParseErrorimpl Eq for Orderingimpl<T> Eq for Cell<T> where T: Copy + Eqimpl<T> Eq for RefCell<T> where T: Eq + ?Sizedimpl Eq for BorrowStateimpl<'a, B> Eq for Cow<'a, B> where B: Eq + ToOwned + ?Sizedimpl Eq for Errorimpl Eq for TypeIdimpl Eq for RangeFullimpl<Idx> Eq for Range<Idx> where Idx: Eqimpl<Idx> Eq for RangeFrom<Idx> where Idx: Eqimpl<Idx> Eq for RangeTo<Idx> where Idx: Eqimpl<Idx> Eq for RangeInclusive<Idx> where Idx: Eqimpl<Idx> Eq for RangeToInclusive<Idx> where Idx: Eq