Trait std::cmp::Eq
[−]
[src]
pub trait Eq: PartialEq<Self> { }Trait for equality comparisons which are equivalence relations.
This means, that in addition to a == b`a == band` and a != b`a != bbeing strict inverses, the equality must be (for all` being strict inverses, the equality must
be (for all a`a,`, b`band` and c`c`):
- reflexive:
a == a`a == a`; - symmetric:
a == b`a == bimplies` impliesb == a`b == a`; and - transitive:
a == b`a == band` andb == c`b == cimplies` impliesa == c`a == c`.
This property cannot be checked by the compiler, and therefore Eq`Eqimplies` implies
PartialEq`PartialEq`, and has no extra methods.
Implementors
impl<T> Eq for Wrapping<T> where T: Eq + Eqimpl Eq for Big32x36impl Eq for Big8x3impl<'a> Eq for Part<'a>impl Eq for Signimpl<T> Eq for NonZero<T> where T: Zeroable + Eq + Eqimpl<T> Eq for *const T where T: ?Sizedimpl<T> Eq for *mut T where T: ?Sizedimpl Eq for NoCopyimpl<T> Eq for PhantomData<T> where T: ?Sizedimpl Eq for RangeFullimpl<Idx> Eq for Range<Idx> where Idx: Eq + Eq + Eqimpl<Idx> Eq for RangeFrom<Idx> where Idx: Eq + Eqimpl<Idx> Eq for RangeTo<Idx> where Idx: Eq + Eqimpl Eq for Orderingimpl Eq for ()impl Eq for boolimpl Eq for charimpl Eq for usizeimpl Eq for u8impl Eq for u16impl Eq for u32impl Eq for u64impl Eq for isizeimpl Eq for i8impl Eq for i16impl Eq for i32impl Eq for i64impl<'a, A> Eq for &'a A where A: Eq + ?Sizedimpl<'a, A> Eq for &'a mut A where A: Eq + ?Sizedimpl Eq for TypeIdimpl<T> Eq for [T; 0] where T: Eqimpl<T> Eq for [T; 1] where T: Eqimpl<T> Eq for [T; 2] where T: Eqimpl<T> Eq for [T; 3] where T: Eqimpl<T> Eq for [T; 4] where T: Eqimpl<T> Eq for [T; 5] where T: Eqimpl<T> Eq for [T; 6] where T: Eqimpl<T> Eq for [T; 7] where T: Eqimpl<T> Eq for [T; 8] where T: Eqimpl<T> Eq for [T; 9] where T: Eqimpl<T> Eq for [T; 10] where T: Eqimpl<T> Eq for [T; 11] where T: Eqimpl<T> Eq for [T; 12] where T: Eqimpl<T> Eq for [T; 13] where T: Eqimpl<T> Eq for [T; 14] where T: Eqimpl<T> Eq for [T; 15] where T: Eqimpl<T> Eq for [T; 16] where T: Eqimpl<T> Eq for [T; 17] where T: Eqimpl<T> Eq for [T; 18] where T: Eqimpl<T> Eq for [T; 19] where T: Eqimpl<T> Eq for [T; 20] where T: Eqimpl<T> Eq for [T; 21] where T: Eqimpl<T> Eq for [T; 22] where T: Eqimpl<T> Eq for [T; 23] where T: Eqimpl<T> Eq for [T; 24] where T: Eqimpl<T> Eq for [T; 25] where T: Eqimpl<T> Eq for [T; 26] where T: Eqimpl<T> Eq for [T; 27] where T: Eqimpl<T> Eq for [T; 28] where T: Eqimpl<T> Eq for [T; 29] where T: Eqimpl<T> Eq for [T; 30] where T: Eqimpl<T> Eq for [T; 31] where T: Eqimpl<T> Eq for [T; 32] where T: Eqimpl<T> Eq for Option<T> where T: Eq + Eqimpl<T, E> Eq for Result<T, E> where T: Eq + Eq, E: Eq + Eqimpl<T> Eq for [T] where T: Eqimpl Eq for SearchStepimpl Eq for Utf8Errorimpl Eq for strimpl<A> Eq for (A,) where A: Eqimpl<A, B> Eq for (A, B) where B: Eq, A: Eqimpl<A, B, C> Eq for (A, B, C) where A: Eq, B: Eq, C: Eqimpl<A, B, C, D> Eq for (A, B, C, D) where A: Eq, C: Eq, D: Eq, B: Eqimpl<A, B, C, D, E> Eq for (A, B, C, D, E) where E: Eq, B: Eq, D: Eq, A: Eq, C: Eqimpl<A, B, C, D, E, F> Eq for (A, B, C, D, E, F) where F: Eq, B: Eq, D: Eq, E: Eq, A: Eq, C: Eqimpl<A, B, C, D, E, F, G> Eq for (A, B, C, D, E, F, G) where C: Eq, B: Eq, G: Eq, D: Eq, A: Eq, E: Eq, F: Eqimpl<A, B, C, D, E, F, G, H> Eq for (A, B, C, D, E, F, G, H) where G: Eq, E: Eq, A: Eq, B: Eq, C: Eq, D: Eq, F: Eq, H: Eqimpl<A, B, C, D, E, F, G, H, I> Eq for (A, B, C, D, E, F, G, H, I) where I: Eq, A: Eq, G: Eq, F: Eq, H: Eq, B: Eq, C: Eq, D: Eq, E: Eqimpl<A, B, C, D, E, F, G, H, I, J> Eq for (A, B, C, D, E, F, G, H, I, J) where D: Eq, I: Eq, G: Eq, A: Eq, B: Eq, C: Eq, E: Eq, H: Eq, J: Eq, F: 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 K: Eq, I: Eq, H: Eq, C: Eq, F: Eq, A: Eq, B: Eq, E: Eq, D: Eq, G: Eq, J: Eqimpl<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 L: Eq, B: Eq, D: Eq, E: Eq, G: Eq, C: Eq, J: Eq, H: Eq, I: Eq, F: Eq, K: Eq, A: Eqimpl<T> Eq for Box<T> where T: Eq + ?Sizedimpl<T> Eq for Arc<T> where T: Eqimpl<T> Eq for Rc<T> where T: Eqimpl Eq for BitVecimpl Eq for BitSetimpl<K, V> Eq for BTreeMap<K, V> where V: Eq, K: Eqimpl<T> Eq for BTreeSet<T> where T: Eq + Eqimpl<'a, B> Eq for Cow<'a, B> where B: Eq + ToOwned + ?Sizedimpl<E> Eq for EnumSet<E> where E: Eq + Eqimpl<A> Eq for LinkedList<A> where A: Eqimpl Eq for Stringimpl Eq for ParseErrorimpl<T> Eq for Vec<T> where T: Eqimpl<A> Eq for VecDeque<A> where A: Eqimpl<V> Eq for VecMap<V> where V: Eqimpl<T> Eq for Bound<T> where T: Eq + Eq + Eqimpl Eq for GraphemeStateimpl Eq for Utf16Itemimpl Eq for LocalKeyStateimpl<K, V, S> Eq for HashMap<K, V, S> where K: Eq + Hash, V: Eq, S: HashStateimpl<T, S> Eq for HashSet<T, S> where T: Eq + Hash, S: HashStateimpl Eq for VarErrorimpl Eq for CStringimpl Eq for CStrimpl Eq for OsStringimpl Eq for OsStrimpl Eq for Permissionsimpl Eq for FileTypeimpl Eq for ErrorKindimpl Eq for SeekFromimpl Eq for IpAddrimpl Eq for Ipv6MulticastScopeimpl Eq for Ipv4Addrimpl Eq for Ipv6Addrimpl Eq for SocketAddrimpl Eq for SocketAddrV4impl Eq for SocketAddrV6impl<'a> Eq for Prefix<'a>impl<'a> Eq for PrefixComponent<'a>impl<'a> Eq for Component<'a>impl<'a> Eq for Components<'a>impl Eq for PathBufimpl Eq for Pathimpl Eq for Outputimpl Eq for ExitStatusimpl<T: Eq> Eq for SendError<T> where T: Eqimpl Eq for RecvErrorimpl Eq for TryRecvErrorimpl<T: Eq> Eq for TrySendError<T> where T: Eq, T: Eqimpl Eq for Duration