Trait kvarn_async::prelude::compact_str::core::cmp::PartialEq

1.0.0 · source ·
pub trait PartialEq<Rhs = Self>
where Rhs: ?Sized,
{ // Required method fn eq(&self, other: &Rhs) -> bool; // Provided method fn ne(&self, other: &Rhs) -> bool { ... } }
Expand description

Trait for comparisons using the equality operator.

Implementing this trait for types provides the == and != operators for those types.

x.eq(y) can also be written x == y, and x.ne(y) can be written x != y. We use the easier-to-read infix notation in the remainder of this documentation.

This trait allows for comparisons using the equality operator, for types that do not have a full equivalence relation. For example, in floating point numbers NaN != NaN, so floating point types implement PartialEq but not Eq. Formally speaking, when Rhs == Self, this trait corresponds to a partial equivalence relation.

Implementations must ensure that eq and ne are consistent with each other:

  • a != b if and only if !(a == b).

The default implementation of ne provides this consistency and is almost always sufficient. It should not be overridden without very good reason.

If PartialOrd or Ord are also implemented for Self and Rhs, their methods must also be consistent with PartialEq (see the documentation of those traits for the exact requirements). It’s easy to accidentally make them disagree by deriving some of the traits and manually implementing others.

The equality relation == must satisfy the following conditions (for all a, b, c of type A, B, C):

  • Symmetric: if A: PartialEq<B> and B: PartialEq<A>, then a == b implies b == a; and

  • Transitive: if A: PartialEq<B> and B: PartialEq<C> and A: PartialEq<C>, then a == b and b == c implies a == c.

Note that the B: PartialEq<A> (symmetric) and A: PartialEq<C> (transitive) impls are not forced to exist, but these requirements apply whenever they do exist.

Violating these requirements is a logic error. The behavior resulting from a logic error is not specified, but users of the trait must ensure that such logic errors do not result in undefined behavior. This means that unsafe code must not rely on the correctness of these methods.

§Derivable

This trait can be used with #[derive]. When derived on structs, two instances are equal if all fields are equal, and not equal if any fields are not equal. When derived on enums, two instances are equal if they are the same variant and all fields are equal.

§How can I implement PartialEq?

An example implementation for a domain in which two books are considered the same book if their ISBN matches, even if the formats differ:

enum BookFormat {
    Paperback,
    Hardback,
    Ebook,
}

struct Book {
    isbn: i32,
    format: BookFormat,
}

impl PartialEq for Book {
    fn eq(&self, other: &Self) -> bool {
        self.isbn == other.isbn
    }
}

let b1 = Book { isbn: 3, format: BookFormat::Paperback };
let b2 = Book { isbn: 3, format: BookFormat::Ebook };
let b3 = Book { isbn: 10, format: BookFormat::Paperback };

assert!(b1 == b2);
assert!(b1 != b3);

§How can I compare two different types?

The type you can compare with is controlled by PartialEq’s type parameter. For example, let’s tweak our previous code a bit:

// The derive implements <BookFormat> == <BookFormat> comparisons
#[derive(PartialEq)]
enum BookFormat {
    Paperback,
    Hardback,
    Ebook,
}

struct Book {
    isbn: i32,
    format: BookFormat,
}

// Implement <Book> == <BookFormat> comparisons
impl PartialEq<BookFormat> for Book {
    fn eq(&self, other: &BookFormat) -> bool {
        self.format == *other
    }
}

// Implement <BookFormat> == <Book> comparisons
impl PartialEq<Book> for BookFormat {
    fn eq(&self, other: &Book) -> bool {
        *self == other.format
    }
}

let b1 = Book { isbn: 3, format: BookFormat::Paperback };

assert!(b1 == BookFormat::Paperback);
assert!(BookFormat::Ebook != b1);

By changing impl PartialEq for Book to impl PartialEq<BookFormat> for Book, we allow BookFormats to be compared with Books.

A comparison like the one above, which ignores some fields of the struct, can be dangerous. It can easily lead to an unintended violation of the requirements for a partial equivalence relation. For example, if we kept the above implementation of PartialEq<Book> for BookFormat and added an implementation of PartialEq<Book> for Book (either via a #[derive] or via the manual implementation from the first example) then the result would violate transitivity:

#[derive(PartialEq)]
enum BookFormat {
    Paperback,
    Hardback,
    Ebook,
}

#[derive(PartialEq)]
struct Book {
    isbn: i32,
    format: BookFormat,
}

impl PartialEq<BookFormat> for Book {
    fn eq(&self, other: &BookFormat) -> bool {
        self.format == *other
    }
}

impl PartialEq<Book> for BookFormat {
    fn eq(&self, other: &Book) -> bool {
        *self == other.format
    }
}

fn main() {
    let b1 = Book { isbn: 1, format: BookFormat::Paperback };
    let b2 = Book { isbn: 2, format: BookFormat::Paperback };

    assert!(b1 == BookFormat::Paperback);
    assert!(BookFormat::Paperback == b2);

    // The following should hold by transitivity but doesn't.
    assert!(b1 == b2); // <-- PANICS
}

§Examples

let x: u32 = 0;
let y: u32 = 1;

assert_eq!(x == y, false);
assert_eq!(x.eq(&y), false);

Required Methods§

source

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

This method tests for self and other values to be equal, and is used by ==.

Provided Methods§

source

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§

1.7.0 · source§

impl PartialEq for IpAddr

source§

impl PartialEq for SocketAddr

1.28.0 · source§

impl PartialEq for kvarn_async::prelude::fmt::Alignment

source§

impl PartialEq for ErrorKind

source§

impl PartialEq for SeekFrom

source§

impl PartialEq for Ipv6MulticastScope

source§

impl PartialEq for Shutdown

source§

impl PartialEq for CacheControlError

source§

impl PartialEq for RequestParseStage

source§

impl PartialEq for SanitizeError

source§

impl PartialEq for AsciiChar

1.34.0 · source§

impl PartialEq for Infallible

source§

impl PartialEq for FpCategory

1.55.0 · source§

impl PartialEq for IntErrorKind

source§

impl PartialEq for SearchStep

source§

impl PartialEq for kvarn_async::prelude::compact_str::core::sync::atomic::Ordering

source§

impl PartialEq for kvarn_async::prelude::compact_str::core::cmp::Ordering

source§

impl PartialEq for TryReserveErrorKind

1.65.0 · source§

impl PartialEq for BacktraceStatus

source§

impl PartialEq for VarError

source§

impl PartialEq for BacktraceStyle

1.12.0 · source§

impl PartialEq for RecvTimeoutError

source§

impl PartialEq for std::sync::mpsc::TryRecvError

source§

impl PartialEq for _Unwind_Action

source§

impl PartialEq for _Unwind_Reason_Code

source§

impl PartialEq for Level

source§

impl PartialEq for LevelFilter

source§

impl PartialEq for RuntimeFlavor

source§

impl PartialEq for TryAcquireError

source§

impl PartialEq for tokio::sync::broadcast::error::RecvError

source§

impl PartialEq for tokio::sync::broadcast::error::TryRecvError

source§

impl PartialEq for tokio::sync::mpsc::error::TryRecvError

source§

impl PartialEq for tokio::sync::oneshot::error::TryRecvError

source§

impl PartialEq for MissedTickBehavior

const: unstable · source§

impl PartialEq for bool

const: unstable · source§

impl PartialEq for char

const: unstable · source§

impl PartialEq for f32

const: unstable · source§

impl PartialEq for f64

const: unstable · source§

impl PartialEq for i8

const: unstable · source§

impl PartialEq for i16

const: unstable · source§

impl PartialEq for i32

const: unstable · source§

impl PartialEq for i64

const: unstable · source§

impl PartialEq for i128

const: unstable · source§

impl PartialEq for isize

source§

impl PartialEq for !

source§

impl PartialEq for str

const: unstable · source§

impl PartialEq for u8

const: unstable · source§

impl PartialEq for u16

const: unstable · source§

impl PartialEq for u32

const: unstable · source§

impl PartialEq for u64

const: unstable · source§

impl PartialEq for u128

source§

impl PartialEq for ()

const: unstable · source§

impl PartialEq for usize

source§

impl PartialEq for Error

source§

impl PartialEq for AddrParseError

source§

impl PartialEq for Ipv4Addr

source§

impl PartialEq for Ipv6Addr

source§

impl PartialEq for SocketAddrV4

source§

impl PartialEq for SocketAddrV6

source§

impl PartialEq for CriticalRequestComponents

source§

impl PartialEq for ParseBoolError

source§

impl PartialEq for Utf8Error

source§

impl PartialEq for Bytes

source§

impl PartialEq for BytesMut

1.3.0 · source§

impl PartialEq for Duration

source§

impl PartialEq for HeaderName

source§

impl PartialEq for HeaderValue

1.8.0 · source§

impl PartialEq for kvarn_async::prelude::Instant

source§

impl PartialEq for Method

source§

impl PartialEq for Path

source§

impl PartialEq for PathBuf

source§

impl PartialEq for StatusCode

source§

impl PartialEq for Uri

source§

impl PartialEq for Version

source§

impl PartialEq for Authority

source§

impl PartialEq for PathAndQuery

source§

impl PartialEq for Scheme

source§

impl PartialEq for AllocError

1.28.0 · source§

impl PartialEq for Layout

1.50.0 · source§

impl PartialEq for LayoutError

source§

impl PartialEq for TypeId

1.27.0 · source§

impl PartialEq for CpuidResult

1.34.0 · source§

impl PartialEq for CharTryFromError

1.9.0 · source§

impl PartialEq for DecodeUtf16Error

1.20.0 · source§

impl PartialEq for ParseCharError

1.59.0 · source§

impl PartialEq for TryFromCharError

source§

impl PartialEq for CStr

1.69.0 · source§

impl PartialEq for FromBytesUntilNulError

1.64.0 · source§

impl PartialEq for FromBytesWithNulError

1.33.0 · source§

impl PartialEq for PhantomPinned

source§

impl PartialEq for Assume

1.34.0 · source§

impl PartialEq for NonZero<i8>

1.34.0 · source§

impl PartialEq for NonZero<i16>

1.34.0 · source§

impl PartialEq for NonZero<i32>

1.34.0 · source§

impl PartialEq for NonZero<i64>

1.34.0 · source§

impl PartialEq for NonZero<i128>

1.34.0 · source§

impl PartialEq for NonZero<isize>

1.28.0 · source§

impl PartialEq for NonZero<u8>

1.28.0 · source§

impl PartialEq for NonZero<u16>

1.28.0 · source§

impl PartialEq for NonZero<u32>

1.28.0 · source§

impl PartialEq for NonZero<u64>

1.28.0 · source§

impl PartialEq for NonZero<u128>

1.28.0 · source§

impl PartialEq for NonZero<usize>

source§

impl PartialEq for ParseFloatError

source§

impl PartialEq for ParseIntError

1.34.0 · source§

impl PartialEq for TryFromIntError

source§

impl PartialEq for RangeFull

source§

impl PartialEq for kvarn_async::prelude::compact_str::core::ptr::Alignment

1.36.0 · source§

impl PartialEq for RawWaker

1.36.0 · source§

impl PartialEq for RawWakerVTable

1.66.0 · source§

impl PartialEq for TryFromFloatSecsError

source§

impl PartialEq for UnorderedKeyError

1.57.0 · source§

impl PartialEq for TryReserveError

1.64.0 · source§

impl PartialEq for CString

1.64.0 · source§

impl PartialEq for FromVecWithNulError

1.64.0 · source§

impl PartialEq for IntoStringError

1.64.0 · source§

impl PartialEq for NulError

source§

impl PartialEq for FromUtf8Error

source§

impl PartialEq for String

source§

impl PartialEq for OsStr

source§

impl PartialEq for OsString

1.1.0 · source§

impl PartialEq for FileType

source§

impl PartialEq for Permissions

source§

impl PartialEq for UCred

1.7.0 · source§

impl PartialEq for StripPrefixError

source§

impl PartialEq for ExitStatus

source§

impl PartialEq for ExitStatusError

source§

impl PartialEq for Output

1.5.0 · source§

impl PartialEq for std::sync::condvar::WaitTimeoutResult

source§

impl PartialEq for std::sync::mpsc::RecvError

1.26.0 · source§

impl PartialEq for AccessError

1.19.0 · source§

impl PartialEq for ThreadId

1.8.0 · source§

impl PartialEq for SystemTime

source§

impl PartialEq for ParseLevelError

source§

impl PartialEq for tokio::sync::oneshot::error::RecvError

source§

impl PartialEq for Elapsed

source§

impl PartialEq for tokio::time::instant::Instant

§

impl PartialEq for FilterOp

§

impl PartialEq for OnceState

§

impl PartialEq for ParkResult

§

impl PartialEq for ParkToken

§

impl PartialEq for RequeueOp

§

impl PartialEq for UnparkResult

§

impl PartialEq for UnparkToken

§

impl PartialEq for WaitTimeoutResult

1.29.0 · source§

impl PartialEq<&str> for OsString

1.16.0 · source§

impl PartialEq<IpAddr> for Ipv4Addr

1.16.0 · source§

impl PartialEq<IpAddr> for Ipv6Addr

source§

impl PartialEq<Level> for LevelFilter

source§

impl PartialEq<LevelFilter> for Level

source§

impl PartialEq<str> for ValueQualitySet<'_>

source§

impl PartialEq<str> for Bytes

source§

impl PartialEq<str> for BytesMut

source§

impl PartialEq<str> for HeaderName

source§

impl PartialEq<str> for HeaderValue

source§

impl PartialEq<str> for Method

source§

impl PartialEq<str> for Uri

source§

impl PartialEq<str> for Authority

Case-insensitive equality

§Examples

let authority: Authority = "HELLO.com".parse().unwrap();
assert_eq!(authority, "hello.coM");
assert_eq!("hello.com", authority);
source§

impl PartialEq<str> for PathAndQuery

source§

impl PartialEq<str> for Scheme

Case-insensitive equality

§Examples

let scheme: Scheme = "HTTP".parse().unwrap();
assert_eq!(scheme, *"http");
source§

impl PartialEq<str> for OsStr

source§

impl PartialEq<str> for OsString

source§

impl PartialEq<u16> for StatusCode

1.16.0 · source§

impl PartialEq<Ipv4Addr> for IpAddr

1.16.0 · source§

impl PartialEq<Ipv6Addr> for IpAddr

source§

impl PartialEq<Bytes> for &str

source§

impl PartialEq<Bytes> for &[u8]

source§

impl PartialEq<Bytes> for str

source§

impl PartialEq<Bytes> for BytesMut

source§

impl PartialEq<Bytes> for String

source§

impl PartialEq<Bytes> for Vec<u8>

source§

impl PartialEq<Bytes> for [u8]

source§

impl PartialEq<BytesMut> for &str

source§

impl PartialEq<BytesMut> for &[u8]

source§

impl PartialEq<BytesMut> for str

source§

impl PartialEq<BytesMut> for Bytes

source§

impl PartialEq<BytesMut> for String

source§

impl PartialEq<BytesMut> for Vec<u8>

source§

impl PartialEq<BytesMut> for [u8]

§

impl PartialEq<CompactString> for &str

§

impl PartialEq<CompactString> for String

source§

impl PartialEq<HeaderName> for str

source§

impl PartialEq<HeaderValue> for str

source§

impl PartialEq<HeaderValue> for String

source§

impl PartialEq<HeaderValue> for [u8]

source§

impl PartialEq<Method> for str

1.6.0 · source§

impl PartialEq<Path> for PathBuf

1.8.0 · source§

impl PartialEq<Path> for OsStr

1.8.0 · source§

impl PartialEq<Path> for OsString

1.6.0 · source§

impl PartialEq<PathBuf> for Path

1.8.0 · source§

impl PartialEq<PathBuf> for OsStr

1.8.0 · source§

impl PartialEq<PathBuf> for OsString

source§

impl PartialEq<StatusCode> for u16

source§

impl PartialEq<Uri> for str

source§

impl PartialEq<Authority> for str

source§

impl PartialEq<Authority> for String

source§

impl PartialEq<PathAndQuery> for str

source§

impl PartialEq<PathAndQuery> for String

source§

impl PartialEq<Scheme> for str

Case-insensitive equality

source§

impl PartialEq<String> for Bytes

source§

impl PartialEq<String> for BytesMut

source§

impl PartialEq<String> for HeaderValue

source§

impl PartialEq<String> for Authority

source§

impl PartialEq<String> for PathAndQuery

source§

impl PartialEq<Vec<u8>> for Bytes

source§

impl PartialEq<Vec<u8>> for BytesMut

source§

impl PartialEq<OsStr> for str

1.8.0 · source§

impl PartialEq<OsStr> for Path

1.8.0 · source§

impl PartialEq<OsStr> for PathBuf

source§

impl PartialEq<OsString> for str

1.8.0 · source§

impl PartialEq<OsString> for Path

1.8.0 · source§

impl PartialEq<OsString> for PathBuf

source§

impl PartialEq<[u8]> for Bytes

source§

impl PartialEq<[u8]> for BytesMut

source§

impl PartialEq<[u8]> for HeaderValue

source§

impl<'a> PartialEq for Component<'a>

source§

impl<'a> PartialEq for Prefix<'a>

source§

impl<'a> PartialEq for Query<'a>

source§

impl<'a> PartialEq for QueryPair<'a>

source§

impl<'a> PartialEq for ValueQualitySet<'a>

source§

impl<'a> PartialEq for Utf8Chunk<'a>

1.10.0 · source§

impl<'a> PartialEq for Location<'a>

source§

impl<'a> PartialEq for Components<'a>

source§

impl<'a> PartialEq for PrefixComponent<'a>

source§

impl<'a> PartialEq for Metadata<'a>

source§

impl<'a> PartialEq for MetadataBuilder<'a>

source§

impl<'a> PartialEq<&'a str> for HeaderName

source§

impl<'a> PartialEq<&'a str> for Method

source§

impl<'a> PartialEq<&'a str> for Uri

source§

impl<'a> PartialEq<&'a str> for Authority

source§

impl<'a> PartialEq<&'a str> for PathAndQuery

source§

impl<'a> PartialEq<&'a HeaderName> for HeaderName

source§

impl<'a> PartialEq<&'a Method> for Method

1.6.0 · source§

impl<'a> PartialEq<&'a Path> for PathBuf

1.8.0 · source§

impl<'a> PartialEq<&'a Path> for OsStr

1.8.0 · source§

impl<'a> PartialEq<&'a Path> for OsString

1.8.0 · source§

impl<'a> PartialEq<&'a OsStr> for Path

1.8.0 · source§

impl<'a> PartialEq<&'a OsStr> for PathBuf

1.6.0 · source§

impl<'a> PartialEq<Cow<'a, Path>> for Path

1.6.0 · source§

impl<'a> PartialEq<Cow<'a, Path>> for PathBuf

1.8.0 · source§

impl<'a> PartialEq<Cow<'a, Path>> for OsStr

1.8.0 · source§

impl<'a> PartialEq<Cow<'a, Path>> for OsString

1.8.0 · source§

impl<'a> PartialEq<Cow<'a, OsStr>> for Path

1.8.0 · source§

impl<'a> PartialEq<Cow<'a, OsStr>> for PathBuf

§

impl<'a> PartialEq<CompactString> for Cow<'a, str>

source§

impl<'a> PartialEq<HeaderName> for &'a str

source§

impl<'a> PartialEq<HeaderName> for &'a HeaderName

source§

impl<'a> PartialEq<HeaderValue> for &'a str

source§

impl<'a> PartialEq<HeaderValue> for &'a HeaderValue

source§

impl<'a> PartialEq<Method> for &'a str

source§

impl<'a> PartialEq<Method> for &'a Method

1.8.0 · source§

impl<'a> PartialEq<Path> for &'a OsStr

1.6.0 · source§

impl<'a> PartialEq<Path> for Cow<'a, Path>

1.8.0 · source§

impl<'a> PartialEq<Path> for Cow<'a, OsStr>

1.6.0 · source§

impl<'a> PartialEq<PathBuf> for &'a Path

1.8.0 · source§

impl<'a> PartialEq<PathBuf> for &'a OsStr

1.6.0 · source§

impl<'a> PartialEq<PathBuf> for Cow<'a, Path>

1.8.0 · source§

impl<'a> PartialEq<PathBuf> for Cow<'a, OsStr>

source§

impl<'a> PartialEq<Uri> for &'a str

source§

impl<'a> PartialEq<Authority> for &'a str

source§

impl<'a> PartialEq<PathAndQuery> for &'a str

1.8.0 · source§

impl<'a> PartialEq<OsStr> for &'a Path

1.8.0 · source§

impl<'a> PartialEq<OsStr> for Cow<'a, Path>

1.29.0 · source§

impl<'a> PartialEq<OsString> for &'a str

1.8.0 · source§

impl<'a> PartialEq<OsString> for &'a Path

1.8.0 · source§

impl<'a> PartialEq<OsString> for Cow<'a, Path>

source§

impl<'a, 'b> PartialEq<&'a str> for String

1.8.0 · source§

impl<'a, 'b> PartialEq<&'a Path> for Cow<'b, OsStr>

1.8.0 · source§

impl<'a, 'b> PartialEq<&'a OsStr> for OsString

source§

impl<'a, 'b> PartialEq<&'b str> for Cow<'a, str>

1.6.0 · source§

impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, Path>

1.8.0 · source§

impl<'a, 'b> PartialEq<&'b OsStr> for Cow<'a, Path>

1.8.0 · source§

impl<'a, 'b> PartialEq<&'b OsStr> for Cow<'a, OsStr>

source§

impl<'a, 'b> PartialEq<Cow<'a, str>> for &'b str

source§

impl<'a, 'b> PartialEq<Cow<'a, str>> for str

source§

impl<'a, 'b> PartialEq<Cow<'a, str>> for String

1.6.0 · source§

impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b Path

1.8.0 · source§

impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b OsStr

1.8.0 · source§

impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for &'b OsStr

1.8.0 · source§

impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for OsStr

1.8.0 · source§

impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for OsString

1.8.0 · source§

impl<'a, 'b> PartialEq<Cow<'b, OsStr>> for &'a Path

source§

impl<'a, 'b> PartialEq<str> for Cow<'a, str>

source§

impl<'a, 'b> PartialEq<str> for String

source§

impl<'a, 'b> PartialEq<String> for &'a str

source§

impl<'a, 'b> PartialEq<String> for Cow<'a, str>

source§

impl<'a, 'b> PartialEq<String> for str

1.8.0 · source§

impl<'a, 'b> PartialEq<OsStr> for Cow<'a, OsStr>

1.8.0 · source§

impl<'a, 'b> PartialEq<OsStr> for OsString

1.8.0 · source§

impl<'a, 'b> PartialEq<OsString> for &'a OsStr

1.8.0 · source§

impl<'a, 'b> PartialEq<OsString> for Cow<'a, OsStr>

1.8.0 · source§

impl<'a, 'b> PartialEq<OsString> for OsStr

source§

impl<'a, 'b, B, C> PartialEq<Cow<'b, C>> for Cow<'a, B>
where B: PartialEq<C> + ToOwned + ?Sized, C: ToOwned + ?Sized,

source§

impl<'a, T> PartialEq for GetAll<'a, T>
where T: PartialEq,

source§

impl<'a, T> PartialEq<&'a T> for Bytes
where Bytes: PartialEq<T>, T: ?Sized,

source§

impl<'a, T> PartialEq<&'a T> for BytesMut
where BytesMut: PartialEq<T>, T: ?Sized,

source§

impl<'a, T> PartialEq<&'a T> for HeaderValue
where HeaderValue: PartialEq<T>, T: ?Sized,

source§

impl<A, B> PartialEq<&B> for &A
where A: PartialEq<B> + ?Sized, B: ?Sized,

source§

impl<A, B> PartialEq<&B> for &mut A
where A: PartialEq<B> + ?Sized, B: ?Sized,

source§

impl<A, B> PartialEq<&mut B> for &A
where A: PartialEq<B> + ?Sized, B: ?Sized,

source§

impl<A, B> PartialEq<&mut B> for &mut A
where A: PartialEq<B> + ?Sized, B: ?Sized,

source§

impl<A, B> PartialEq<[B]> for [A]
where A: PartialEq<B>,

§

impl<A, B> PartialEq<SmallVec<B>> for SmallVec<A>
where A: Array, B: Array, <A as Array>::Item: PartialEq<<B as Array>::Item>,

source§

impl<A, B, const N: usize> PartialEq<&[B]> for [A; N]
where A: PartialEq<B>,

source§

impl<A, B, const N: usize> PartialEq<&mut [B]> for [A; N]
where A: PartialEq<B>,

source§

impl<A, B, const N: usize> PartialEq<[A; N]> for &[B]
where B: PartialEq<A>,

source§

impl<A, B, const N: usize> PartialEq<[A; N]> for &mut [B]
where B: PartialEq<A>,

source§

impl<A, B, const N: usize> PartialEq<[A; N]> for [B]
where B: PartialEq<A>,

source§

impl<A, B, const N: usize> PartialEq<[B; N]> for [A; N]
where A: PartialEq<B>,

source§

impl<A, B, const N: usize> PartialEq<[B]> for [A; N]
where A: PartialEq<B>,

1.55.0 · source§

impl<B, C> PartialEq for ControlFlow<B, C>
where B: PartialEq, C: PartialEq,

source§

impl<Dyn> PartialEq for DynMetadata<Dyn>
where Dyn: ?Sized,

1.4.0 · source§

impl<F> PartialEq for F
where F: FnPtr,

1.29.0 · source§

impl<H> PartialEq for BuildHasherDefault<H>

source§

impl<Idx> PartialEq for Range<Idx>
where Idx: PartialEq,

source§

impl<Idx> PartialEq for RangeFrom<Idx>
where Idx: PartialEq,

1.26.0 · source§

impl<Idx> PartialEq for RangeInclusive<Idx>
where Idx: PartialEq,

source§

impl<Idx> PartialEq for RangeTo<Idx>
where Idx: PartialEq,

1.26.0 · source§

impl<Idx> PartialEq for RangeToInclusive<Idx>
where Idx: PartialEq,

source§

impl<K, V, A> PartialEq for BTreeMap<K, V, A>
where K: PartialEq, V: PartialEq, A: Allocator + Clone,

source§

impl<K, V, S> PartialEq for HashMap<K, V, S>
where K: Eq + Hash, V: PartialEq, S: BuildHasher,

1.41.0 · source§

impl<Ptr, Q> PartialEq<Pin<Q>> for Pin<Ptr>
where Ptr: Deref, Q: Deref, <Ptr as Deref>::Target: PartialEq<<Q as Deref>::Target>,

1.17.0 · source§

impl<T> PartialEq for Bound<T>
where T: PartialEq,

source§

impl<T> PartialEq for Option<T>
where T: PartialEq,

1.36.0 · source§

impl<T> PartialEq for Poll<T>
where T: PartialEq,

source§

impl<T> PartialEq for std::sync::mpsc::TrySendError<T>
where T: PartialEq,

source§

impl<T> PartialEq for SendTimeoutError<T>
where T: PartialEq,

source§

impl<T> PartialEq for tokio::sync::mpsc::error::TrySendError<T>
where T: PartialEq,

source§

impl<T> PartialEq for SetError<T>
where T: PartialEq,

source§

impl<T> PartialEq for *const T
where T: ?Sized,

source§

impl<T> PartialEq for *mut T
where T: ?Sized,

source§

impl<T> PartialEq for (T₁, T₂, …, Tₙ)
where T: PartialEq + ?Sized,

This trait is implemented for tuples up to twelve items long.

source§

impl<T> PartialEq for Cursor<T>
where T: PartialEq,

source§

impl<T> PartialEq for HeaderMap<T>
where T: PartialEq,

source§

impl<T> PartialEq for Cell<T>
where T: PartialEq + Copy,

1.70.0 · source§

impl<T> PartialEq for kvarn_async::prelude::compact_str::core::cell::OnceCell<T>
where T: PartialEq,

source§

impl<T> PartialEq for RefCell<T>
where T: PartialEq + ?Sized,

source§

impl<T> PartialEq for PhantomData<T>
where T: ?Sized,

1.21.0 · source§

impl<T> PartialEq for Discriminant<T>

1.20.0 · source§

impl<T> PartialEq for ManuallyDrop<T>
where T: PartialEq + ?Sized,

1.74.0 · source§

impl<T> PartialEq for Saturating<T>
where T: PartialEq,

source§

impl<T> PartialEq for Wrapping<T>
where T: PartialEq,

1.25.0 · source§

impl<T> PartialEq for NonNull<T>
where T: ?Sized,

source§

impl<T> PartialEq for std::sync::mpsc::SendError<T>
where T: PartialEq,

1.70.0 · source§

impl<T> PartialEq for OnceLock<T>
where T: PartialEq,

source§

impl<T> PartialEq for tokio::sync::mpsc::error::SendError<T>
where T: PartialEq,

source§

impl<T> PartialEq for tokio::sync::once_cell::OnceCell<T>
where T: PartialEq,

source§

impl<T> PartialEq for tokio::sync::watch::error::SendError<T>
where T: PartialEq,

1.19.0 · source§

impl<T> PartialEq for Reverse<T>
where T: PartialEq,

source§

impl<T> PartialEq<u16> for Port<T>

source§

impl<T> PartialEq<Port<T>> for u16

§

impl<T> PartialEq<T> for CompactString
where T: AsRef<str>,

source§

impl<T, A> PartialEq for Arc<T, A>
where T: PartialEq + ?Sized, A: Allocator,

source§

impl<T, A> PartialEq for Box<T, A>
where T: PartialEq + ?Sized, A: Allocator,

source§

impl<T, A> PartialEq for BTreeSet<T, A>
where T: PartialEq, A: Allocator + Clone,

source§

impl<T, A> PartialEq for LinkedList<T, A>
where T: PartialEq, A: Allocator,

source§

impl<T, A> PartialEq for VecDeque<T, A>
where T: PartialEq, A: Allocator,

source§

impl<T, A> PartialEq for Rc<T, A>
where T: PartialEq + ?Sized, A: Allocator,

source§

impl<T, E> PartialEq for Result<T, E>
where T: PartialEq, E: PartialEq,

source§

impl<T, S> PartialEq for HashSet<T, S>
where T: Eq + Hash, S: BuildHasher,

source§

impl<T, U> PartialEq<&[U]> for Cow<'_, [T]>
where T: PartialEq<U> + Clone,

source§

impl<T, U> PartialEq<&mut [U]> for Cow<'_, [T]>
where T: PartialEq<U> + Clone,

source§

impl<T, U> PartialEq<Port<U>> for Port<T>

source§

impl<T, U, A1, A2> PartialEq<Vec<U, A2>> for Vec<T, A1>
where A1: Allocator, A2: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A> PartialEq<&[U]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

source§

impl<T, U, A> PartialEq<&[U]> for Vec<T, A>
where A: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A> PartialEq<&mut [U]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

source§

impl<T, U, A> PartialEq<&mut [U]> for Vec<T, A>
where A: Allocator, T: PartialEq<U>,

1.48.0 · source§

impl<T, U, A> PartialEq<[U]> for Vec<T, A>
where A: Allocator, T: PartialEq<U>,

1.46.0 · source§

impl<T, U, A> PartialEq<Vec<U, A>> for &[T]
where A: Allocator, T: PartialEq<U>,

1.46.0 · source§

impl<T, U, A> PartialEq<Vec<U, A>> for &mut [T]
where A: Allocator, T: PartialEq<U>,

source§

impl<T, U, A> PartialEq<Vec<U, A>> for Cow<'_, [T]>
where A: Allocator, T: PartialEq<U> + Clone,

1.48.0 · source§

impl<T, U, A> PartialEq<Vec<U, A>> for [T]
where A: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A> PartialEq<Vec<U, A>> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A, const N: usize> PartialEq<&[U; N]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

source§

impl<T, U, A, const N: usize> PartialEq<&[U; N]> for Vec<T, A>
where A: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A, const N: usize> PartialEq<&mut [U; N]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

1.17.0 · source§

impl<T, U, A, const N: usize> PartialEq<[U; N]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

source§

impl<T, U, A, const N: usize> PartialEq<[U; N]> for Vec<T, A>
where A: Allocator, T: PartialEq<U>,

source§

impl<T, const N: usize> PartialEq for Mask<T, N>

source§

impl<T, const N: usize> PartialEq for Simd<T, N>

source§

impl<Y, R> PartialEq for CoroutineState<Y, R>
where Y: PartialEq, R: PartialEq,