Trait std::cmp::EqStable
[-] [+]
[src]
pub trait Eq: PartialEq<Self> where Self: 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 == b
impliesb == a
; and - transitive:
a == b
andb == c
impliesa == c
.
This property cannot be checked by the compiler, and therefore Eq
implies
PartialEq
, and has no extra methods.
Implementors
impl<T> Eq for NonZero<T> where T: Zeroable, T: Eq
impl<T> Eq for *const T
impl<T> Eq for *mut T
impl Eq for NoCopy
impl Eq for Managed
impl<T> Eq for PhantomData<T> where T: ?Sized
impl Eq for RangeFull
impl<Idx> Eq for Range<Idx> where Idx: Eq
impl<Idx> Eq for RangeFrom<Idx> where Idx: Eq
impl<Idx> Eq for RangeTo<Idx> where Idx: Eq
impl Eq for Ordering
impl Eq for ()
impl Eq for bool
impl Eq for char
impl Eq for usize
impl Eq for u8
impl Eq for u16
impl Eq for u32
impl Eq for u64
impl Eq for isize
impl Eq for i8
impl Eq for i16
impl Eq for i32
impl Eq for i64
impl<'a, A> Eq for &'a A where A: Eq, A: ?Sized
impl<'a, A> Eq for &'a mut A where A: Eq, A: ?Sized
impl Eq for TypeId
impl<T> Eq for Option<T> where T: Eq
impl<T, E> Eq for Result<T, E> where T: Eq, E: Eq
impl<T> Eq for [T] where T: Eq
impl Eq for Utf8Error
impl Eq for str
impl<A> Eq for (A,) where A: Eq
impl<A, B> Eq for (A, B) where A: Eq, B: Eq
impl<A, B, C> Eq for (A, B, C) where A: Eq, B: Eq, C: Eq
impl<A, B, C, D> Eq for (A, B, C, D) where A: Eq, B: Eq, C: Eq, D: Eq
impl<A, B, C, D, E> Eq for (A, B, C, D, E) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq
impl<A, B, C, D, E, F> Eq for (A, B, C, D, E, F) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq
impl<A, B, C, D, E, F, G> Eq for (A, B, C, D, E, F, G) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq
impl<A, B, C, D, E, F, G, H> Eq for (A, B, C, D, E, F, G, H) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq
impl<A, B, C, D, E, F, G, H, I> Eq for (A, B, C, D, E, F, G, H, I) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq
impl<A, B, C, D, E, F, G, H, I, J> Eq for (A, B, C, D, E, F, G, H, I, J) where A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq
impl<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 A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq
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 A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq, L: Eq
impl<T> Eq for [T; 0] where T: Eq
impl<T> Eq for [T; 1] where T: Eq
impl<T> Eq for [T; 2] where T: Eq
impl<T> Eq for [T; 3] where T: Eq
impl<T> Eq for [T; 4] where T: Eq
impl<T> Eq for [T; 5] where T: Eq
impl<T> Eq for [T; 6] where T: Eq
impl<T> Eq for [T; 7] where T: Eq
impl<T> Eq for [T; 8] where T: Eq
impl<T> Eq for [T; 9] where T: Eq
impl<T> Eq for [T; 10] where T: Eq
impl<T> Eq for [T; 11] where T: Eq
impl<T> Eq for [T; 12] where T: Eq
impl<T> Eq for [T; 13] where T: Eq
impl<T> Eq for [T; 14] where T: Eq
impl<T> Eq for [T; 15] where T: Eq
impl<T> Eq for [T; 16] where T: Eq
impl<T> Eq for [T; 17] where T: Eq
impl<T> Eq for [T; 18] where T: Eq
impl<T> Eq for [T; 19] where T: Eq
impl<T> Eq for [T; 20] where T: Eq
impl<T> Eq for [T; 21] where T: Eq
impl<T> Eq for [T; 22] where T: Eq
impl<T> Eq for [T; 23] where T: Eq
impl<T> Eq for [T; 24] where T: Eq
impl<T> Eq for [T; 25] where T: Eq
impl<T> Eq for [T; 26] where T: Eq
impl<T> Eq for [T; 27] where T: Eq
impl<T> Eq for [T; 28] where T: Eq
impl<T> Eq for [T; 29] where T: Eq
impl<T> Eq for [T; 30] where T: Eq
impl<T> Eq for [T; 31] where T: Eq
impl<T> Eq for [T; 32] where T: Eq
impl<T> Eq for Box<T> where T: Eq, T: ?Sized
impl<T> Eq for Arc<T> where T: Eq
impl<T> Eq for Rc<T> where T: Eq
impl Eq for BitVec
impl Eq for BitSet
impl<K, V> Eq for BTreeMap<K, V> where K: Eq, V: Eq
impl<T> Eq for BTreeSet<T> where T: Eq
impl<A> Eq for LinkedList<A> where A: Eq
impl<E> Eq for EnumSet<E> where E: Eq
impl<A> Eq for VecDeque<A> where A: Eq
impl Eq for String
impl<T> Eq for Vec<T> where T: Eq
impl<V> Eq for VecMap<V> where V: Eq
impl<'a, B> Eq for Cow<'a, B> where B: Eq, B: ToOwned, B: ?Sized
impl Eq for GraphemeState
impl Eq for Utf16Item
impl Eq for State
impl Eq for CString
impl Eq for CStr
impl Eq for OsString
impl Eq for OsStr
impl Eq for IpAddr
impl Eq for SocketAddr
impl Eq for ProcessOutput
impl Eq for ProcessExit
impl Eq for IoError
impl Eq for IoErrorKind
impl Eq for FileMode
impl Eq for FileAccess
impl Eq for FilePermission
impl Eq for Error
impl Eq for ErrorKind
impl Eq for SeekFrom
impl Eq for Permissions
impl Eq for Ipv6MulticastScope
impl Eq for IpAddr
impl Eq for Ipv4Addr
impl Eq for Ipv6Addr
impl Eq for SocketAddr
impl Eq for VarError
impl<'a> Eq for Prefix<'a>
impl<'a> Eq for Component<'a>
impl<'a> Eq for Components<'a>
impl Eq for PathBuf
impl Eq for Path
impl Eq for Path
impl Eq for Path
impl Eq for Output
impl Eq for ExitStatus
impl Eq for Duration
impl<K, V, S> Eq for HashMap<K, V, S> where K: Eq + Hash, V: Eq, S: HashState
impl<T, S> Eq for HashSet<T, S> where T: Eq + Hash, S: HashState
impl<K, V, S> Eq for HashMap<K, V, S> where K: Eq + Hash, V: Eq, S: HashState
impl<T, S> Eq for HashSet<T, S> where T: Eq + Hash, S: HashState
impl<T: Eq> Eq for SendError<T>
impl Eq for RecvError
impl Eq for TryRecvError
impl<T: Eq> Eq for TrySendError<T>