core::cmp::PartialEq - Rust
Description: API documentation for the Rust `PartialEq` trait in crate `core`.
Keywords: rust, rustlang, rust-lang, PartialEq

# 1.0.0[−][src]Trait core::cmp::PartialEq

    #[lang = "eq"]pub trait PartialEq<Rhs: ?Sized = Self> {
    #[must_use]    fn eq(&self, other: &Rhs) -> bool;

    #[must_use]    fn ne(&self, other: &Rhs) -> bool { ... }
    }

Trait for equality comparisons which are partial equivalence relations.

This trait allows for partial equality, 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, the equality must be (for all `a`, `b` and `c`):

- symmetric: `a == b` implies `b == a`; and
- transitive: `a == b` and `b == c` implies `a == c`.

Note that these requirements mean that the trait itself must be implemented symmetrically and transitively: if `T: PartialEq<U>` and `U: PartialEq<V>` then `U: PartialEq<T>` and `T: PartialEq<V>`.

## Derivable

This trait can be used with `#[derive]`. When `derive`d on structs, two instances are equal if all fields are equal, and not equal if any fields are not equal. When `derive`d on enums, each variant is equal to itself and not equal to the other variants.

## How can I implement `PartialEq`?

`PartialEq` only requires the `eq` method to be implemented; `ne` is defined in terms of it by default. Any manual implementation of `ne` must respect the rule that `eq` is a strict inverse of `ne`; that is, `!(a == b)` if and only if `a != b`.

Implementations of `PartialEq`, `PartialOrd`, and `Ord` must agree with each other. It's easy to accidentally make them disagree by deriving some of the traits and manually implementing others.

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);

Run

## 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);

Run

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

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
    }

Run

# Examples

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

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

Run

## Required methods

### `#[must_use]fn eq(&self, other: &Rhs) -> bool`[src]

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

Loading content...

## Provided methods

### `#[must_use]fn ne(&self, other: &Rhs) -> bool`[src]

This method tests for `!=`.

Loading content...

## Implementors

### `impl PartialEq<!> for !`[src]

#### `fn eq(&self, _: &!) -> bool`[src]

### `impl PartialEq<()> for ()`[src]

#### `fn eq(&self, _other: &()) -> bool`[src]

#### `fn ne(&self, _other: &()) -> bool`[src]

### `impl PartialEq<Ordering> for core::cmp::Ordering`[src]

#### `fn eq(&self, other: &Ordering) -> bool`[src]

### `impl PartialEq<Infallible> for Infallible`[src]

#### `fn eq(&self, _: &Infallible) -> bool`[src]

### `impl PartialEq<FpCategory> for FpCategory`[src]

#### `fn eq(&self, other: &FpCategory) -> bool`[src]

### `impl PartialEq<IntErrorKind> for IntErrorKind`[src]

#### `fn eq(&self, other: &IntErrorKind) -> bool`[src]

### `impl PartialEq<SearchStep> for SearchStep`[src]

#### `fn eq(&self, other: &SearchStep) -> bool`[src]

#### `fn ne(&self, other: &SearchStep) -> bool`[src]

### `impl PartialEq<Ordering> for core::sync::atomic::Ordering`[src]

#### `fn eq(&self, other: &Ordering) -> bool`[src]

### `impl PartialEq<AllocError> for AllocError`[src]

#### `fn eq(&self, other: &AllocError) -> bool`[src]

### `impl PartialEq<Layout> for Layout`[src]

#### `fn eq(&self, other: &Layout) -> bool`[src]

#### `fn ne(&self, other: &Layout) -> bool`[src]

### `impl PartialEq<LayoutError> for LayoutError`[src]

#### `fn eq(&self, other: &LayoutError) -> bool`[src]

#### `fn ne(&self, other: &LayoutError) -> bool`[src]

### `impl PartialEq<TypeId> for TypeId`[src]

#### `fn eq(&self, other: &TypeId) -> bool`[src]

#### `fn ne(&self, other: &TypeId) -> bool`[src]

### `impl PartialEq<CpuidResult> for CpuidResult`[src]

This is supported on x86 or x86-64 only.

#### `fn eq(&self, other: &CpuidResult) -> bool`[src]

#### `fn ne(&self, other: &CpuidResult) -> bool`[src]

### `impl PartialEq<CharTryFromError> for CharTryFromError`[src]

#### `fn eq(&self, other: &CharTryFromError) -> bool`[src]

#### `fn ne(&self, other: &CharTryFromError) -> bool`[src]

### `impl PartialEq<DecodeUtf16Error> for DecodeUtf16Error`[src]

#### `fn eq(&self, other: &DecodeUtf16Error) -> bool`[src]

#### `fn ne(&self, other: &DecodeUtf16Error) -> bool`[src]

### `impl PartialEq<ParseCharError> for ParseCharError`[src]

#### `fn eq(&self, other: &ParseCharError) -> bool`[src]

#### `fn ne(&self, other: &ParseCharError) -> bool`[src]

### `impl PartialEq<Error> for Error`[src]

#### `fn eq(&self, other: &Error) -> bool`[src]

### `impl PartialEq<PhantomPinned> for PhantomPinned`[src]

#### `fn eq(&self, other: &PhantomPinned) -> bool`[src]

### `impl PartialEq<NonZeroI8> for NonZeroI8`[src]

#### `fn eq(&self, other: &NonZeroI8) -> bool`[src]

#### `fn ne(&self, other: &NonZeroI8) -> bool`[src]

### `impl PartialEq<NonZeroI16> for NonZeroI16`[src]

#### `fn eq(&self, other: &NonZeroI16) -> bool`[src]

#### `fn ne(&self, other: &NonZeroI16) -> bool`[src]

### `impl PartialEq<NonZeroI32> for NonZeroI32`[src]

#### `fn eq(&self, other: &NonZeroI32) -> bool`[src]

#### `fn ne(&self, other: &NonZeroI32) -> bool`[src]

### `impl PartialEq<NonZeroI64> for NonZeroI64`[src]

#### `fn eq(&self, other: &NonZeroI64) -> bool`[src]

#### `fn ne(&self, other: &NonZeroI64) -> bool`[src]

### `impl PartialEq<NonZeroI128> for NonZeroI128`[src]

#### `fn eq(&self, other: &NonZeroI128) -> bool`[src]

#### `fn ne(&self, other: &NonZeroI128) -> bool`[src]

### `impl PartialEq<NonZeroIsize> for NonZeroIsize`[src]

#### `fn eq(&self, other: &NonZeroIsize) -> bool`[src]

#### `fn ne(&self, other: &NonZeroIsize) -> bool`[src]

### `impl PartialEq<NonZeroU8> for NonZeroU8`[src]

#### `fn eq(&self, other: &NonZeroU8) -> bool`[src]

#### `fn ne(&self, other: &NonZeroU8) -> bool`[src]

### `impl PartialEq<NonZeroU16> for NonZeroU16`[src]

#### `fn eq(&self, other: &NonZeroU16) -> bool`[src]

#### `fn ne(&self, other: &NonZeroU16) -> bool`[src]

### `impl PartialEq<NonZeroU32> for NonZeroU32`[src]

#### `fn eq(&self, other: &NonZeroU32) -> bool`[src]

#### `fn ne(&self, other: &NonZeroU32) -> bool`[src]

### `impl PartialEq<NonZeroU64> for NonZeroU64`[src]

#### `fn eq(&self, other: &NonZeroU64) -> bool`[src]

#### `fn ne(&self, other: &NonZeroU64) -> bool`[src]

### `impl PartialEq<NonZeroU128> for NonZeroU128`[src]

#### `fn eq(&self, other: &NonZeroU128) -> bool`[src]

#### `fn ne(&self, other: &NonZeroU128) -> bool`[src]

### `impl PartialEq<NonZeroUsize> for NonZeroUsize`[src]

#### `fn eq(&self, other: &NonZeroUsize) -> bool`[src]

#### `fn ne(&self, other: &NonZeroUsize) -> bool`[src]

### `impl PartialEq<ParseFloatError> for ParseFloatError`[src]

#### `fn eq(&self, other: &ParseFloatError) -> bool`[src]

#### `fn ne(&self, other: &ParseFloatError) -> bool`[src]

### `impl PartialEq<ParseIntError> for ParseIntError`[src]

#### `fn eq(&self, other: &ParseIntError) -> bool`[src]

#### `fn ne(&self, other: &ParseIntError) -> bool`[src]

### `impl PartialEq<TryFromIntError> for TryFromIntError`[src]

#### `fn eq(&self, other: &TryFromIntError) -> bool`[src]

#### `fn ne(&self, other: &TryFromIntError) -> bool`[src]

### `impl PartialEq<RangeFull> for RangeFull`[src]

#### `fn eq(&self, other: &RangeFull) -> bool`[src]

### `impl PartialEq<NoneError> for NoneError`[src]

#### `fn eq(&self, other: &NoneError) -> bool`[src]

### `impl PartialEq<ParseBoolError> for ParseBoolError`[src]

#### `fn eq(&self, other: &ParseBoolError) -> bool`[src]

#### `fn ne(&self, other: &ParseBoolError) -> bool`[src]

### `impl PartialEq<Utf8Error> for Utf8Error`[src]

#### `fn eq(&self, other: &Utf8Error) -> bool`[src]

#### `fn ne(&self, other: &Utf8Error) -> bool`[src]

### `impl PartialEq<RawWaker> for RawWaker`[src]

#### `fn eq(&self, other: &RawWaker) -> bool`[src]

#### `fn ne(&self, other: &RawWaker) -> bool`[src]

### `impl PartialEq<RawWakerVTable> for RawWakerVTable`[src]

#### `fn eq(&self, other: &RawWakerVTable) -> bool`[src]

#### `fn ne(&self, other: &RawWakerVTable) -> bool`[src]

### `impl PartialEq<Duration> for Duration`[src]

#### `fn eq(&self, other: &Duration) -> bool`[src]

#### `fn ne(&self, other: &Duration) -> bool`[src]

### `impl PartialEq<bool> for bool`[src]

#### `fn eq(&self, other: &bool) -> bool`[src]

#### `fn ne(&self, other: &bool) -> bool`[src]

### `impl PartialEq<char> for char`[src]

#### `fn eq(&self, other: &char) -> bool`[src]

#### `fn ne(&self, other: &char) -> bool`[src]

### `impl PartialEq<f32> for f32`[src]

#### `fn eq(&self, other: &f32) -> bool`[src]

#### `fn ne(&self, other: &f32) -> bool`[src]

### `impl PartialEq<f64> for f64`[src]

#### `fn eq(&self, other: &f64) -> bool`[src]

#### `fn ne(&self, other: &f64) -> bool`[src]

### `impl PartialEq<i8> for i8`[src]

#### `fn eq(&self, other: &i8) -> bool`[src]

#### `fn ne(&self, other: &i8) -> bool`[src]

### `impl PartialEq<i16> for i16`[src]

#### `fn eq(&self, other: &i16) -> bool`[src]

#### `fn ne(&self, other: &i16) -> bool`[src]

### `impl PartialEq<i32> for i32`[src]

#### `fn eq(&self, other: &i32) -> bool`[src]

#### `fn ne(&self, other: &i32) -> bool`[src]

### `impl PartialEq<i64> for i64`[src]

#### `fn eq(&self, other: &i64) -> bool`[src]

#### `fn ne(&self, other: &i64) -> bool`[src]

### `impl PartialEq<i128> for i128`[src]

#### `fn eq(&self, other: &i128) -> bool`[src]

#### `fn ne(&self, other: &i128) -> bool`[src]

### `impl PartialEq<isize> for isize`[src]

#### `fn eq(&self, other: &isize) -> bool`[src]

#### `fn ne(&self, other: &isize) -> bool`[src]

### `impl PartialEq<str> for str`[src]

#### `fn eq(&self, other: &str) -> bool`[src]

#### `fn ne(&self, other: &str) -> bool`[src]

### `impl PartialEq<u8> for u8`[src]

#### `fn eq(&self, other: &u8) -> bool`[src]

#### `fn ne(&self, other: &u8) -> bool`[src]

### `impl PartialEq<u16> for u16`[src]

#### `fn eq(&self, other: &u16) -> bool`[src]

#### `fn ne(&self, other: &u16) -> bool`[src]

### `impl PartialEq<u32> for u32`[src]

#### `fn eq(&self, other: &u32) -> bool`[src]

#### `fn ne(&self, other: &u32) -> bool`[src]

### `impl PartialEq<u64> for u64`[src]

#### `fn eq(&self, other: &u64) -> bool`[src]

#### `fn ne(&self, other: &u64) -> bool`[src]

### `impl PartialEq<u128> for u128`[src]

#### `fn eq(&self, other: &u128) -> bool`[src]

#### `fn ne(&self, other: &u128) -> bool`[src]

### `impl PartialEq<usize> for usize`[src]

#### `fn eq(&self, other: &usize) -> bool`[src]

#### `fn ne(&self, other: &usize) -> bool`[src]

### `impl<'a> PartialEq<Location<'a>> for Location<'a>`[src]

#### `fn eq(&self, other: &Location<'a>) -> bool`[src]

#### `fn ne(&self, other: &Location<'a>) -> bool`[src]

### `impl<'a> PartialEq<Utf8LossyChunk<'a>> for Utf8LossyChunk<'a>`[src]

#### `fn eq(&self, other: &Utf8LossyChunk<'a>) -> bool`[src]

#### `fn ne(&self, other: &Utf8LossyChunk<'a>) -> bool`[src]

### `impl<A> PartialEq<(A,)> for (A,) where
A: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A,)) -> bool`[src]

#### `fn ne(&self, other: &(A,)) -> bool`[src]

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

#### `fn eq(&self, other: &[B]) -> bool`[src]

#### `fn ne(&self, other: &[B]) -> bool`[src]

### `impl<A, B, const N: usize> PartialEq<&'_ [B]> for [A; N] where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&[B]) -> bool`[src]

#### `fn ne(&self, other: &&[B]) -> bool`[src]

### `impl<A, B, const N: usize> PartialEq<&'_ mut [B]> for [A; N] where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&mut [B]) -> bool`[src]

#### `fn ne(&self, other: &&mut [B]) -> bool`[src]

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

#### `fn eq(&self, other: &[A; N]) -> bool`[src]

#### `fn ne(&self, other: &[A; N]) -> bool`[src]

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

#### `fn eq(&self, other: &[A; N]) -> bool`[src]

#### `fn ne(&self, other: &[A; N]) -> bool`[src]

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

#### `fn eq(&self, other: &[A; N]) -> bool`[src]

#### `fn ne(&self, other: &[A; N]) -> bool`[src]

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

#### `fn eq(&self, other: &[B; N]) -> bool`[src]

#### `fn ne(&self, other: &[B; N]) -> bool`[src]

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

#### `fn eq(&self, other: &[B]) -> bool`[src]

#### `fn ne(&self, other: &[B]) -> bool`[src]

### `impl<A: PartialEq, B> PartialEq<(A, B)> for (A, B) where
B: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B)) -> bool`[src]

#### `fn ne(&self, other: &(A, B)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C> PartialEq<(A, B, C)> for (A, B, C) where
C: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D> PartialEq<(A, B, C, D)> for (A, B, C, D) where
D: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E> PartialEq<(A, B, C, D, E)> for (A, B, C, D, E) where
E: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F> PartialEq<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where
F: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G> PartialEq<(A, B, C, D, E, F, G)> for (A, B, C, D, E, F, G) where
G: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H> PartialEq<(A, B, C, D, E, F, G, H)> for (A, B, C, D, E, F, G, H) where
H: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G, H)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G, H)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I> PartialEq<(A, B, C, D, E, F, G, H, I)> for (A, B, C, D, E, F, G, H, I) where
I: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G, H, I)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J> PartialEq<(A, B, C, D, E, F, G, H, I, J)> for (A, B, C, D, E, F, G, H, I, J) where
J: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K> PartialEq<(A, B, C, D, E, F, G, H, I, J, K)> for (A, B, C, D, E, F, G, H, I, J, K) where
K: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> bool`[src]

### `impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L> PartialEq<(A, B, C, D, E, F, G, H, I, J, K, L)> for (A, B, C, D, E, F, G, H, I, J, K, L) where
L: PartialEq + ?Sized,` [src]

#### `fn eq(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool`[src]

#### `fn ne(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> bool`[src]

### `impl<A: ?Sized, B: ?Sized> PartialEq<&'_ B> for &A where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&B) -> bool`[src]

#### `fn ne(&self, other: &&B) -> bool`[src]

### `impl<A: ?Sized, B: ?Sized> PartialEq<&'_ B> for &mut A where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&B) -> bool`[src]

#### `fn ne(&self, other: &&B) -> bool`[src]

### `impl<A: ?Sized, B: ?Sized> PartialEq<&'_ mut B> for &A where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&mut B) -> bool`[src]

#### `fn ne(&self, other: &&mut B) -> bool`[src]

### `impl<A: ?Sized, B: ?Sized> PartialEq<&'_ mut B> for &mut A where
A: PartialEq<B>,` [src]

#### `fn eq(&self, other: &&mut B) -> bool`[src]

#### `fn ne(&self, other: &&mut B) -> bool`[src]

### `impl<B: PartialEq, C: PartialEq> PartialEq<ControlFlow<B, C>> for ControlFlow<B, C>`[src]

#### `fn eq(&self, other: &ControlFlow<B, C>) -> bool`[src]

#### `fn ne(&self, other: &ControlFlow<B, C>) -> bool`[src]

### `impl<H> PartialEq<BuildHasherDefault<H>> for BuildHasherDefault<H>`[src]

#### `fn eq(&self, _other: &BuildHasherDefault<H>) -> bool`[src]

### `impl<Idx: PartialEq> PartialEq<Range<Idx>> for Range<Idx>`[src]

#### `fn eq(&self, other: &Range<Idx>) -> bool`[src]

#### `fn ne(&self, other: &Range<Idx>) -> bool`[src]

### `impl<Idx: PartialEq> PartialEq<RangeFrom<Idx>> for RangeFrom<Idx>`[src]

#### `fn eq(&self, other: &RangeFrom<Idx>) -> bool`[src]

#### `fn ne(&self, other: &RangeFrom<Idx>) -> bool`[src]

### `impl<Idx: PartialEq> PartialEq<RangeInclusive<Idx>> for RangeInclusive<Idx>`[src]

#### `fn eq(&self, other: &RangeInclusive<Idx>) -> bool`[src]

#### `fn ne(&self, other: &RangeInclusive<Idx>) -> bool`[src]

### `impl<Idx: PartialEq> PartialEq<RangeTo<Idx>> for RangeTo<Idx>`[src]

#### `fn eq(&self, other: &RangeTo<Idx>) -> bool`[src]

#### `fn ne(&self, other: &RangeTo<Idx>) -> bool`[src]

### `impl<Idx: PartialEq> PartialEq<RangeToInclusive<Idx>> for RangeToInclusive<Idx>`[src]

#### `fn eq(&self, other: &RangeToInclusive<Idx>) -> bool`[src]

#### `fn ne(&self, other: &RangeToInclusive<Idx>) -> bool`[src]

### `impl<P: Deref, Q: Deref> PartialEq<Pin<Q>> for Pin<P> where
P::Target: PartialEq<Q::Target>,` [src]

#### `fn eq(&self, other: &Pin<Q>) -> bool`[src]

#### `fn ne(&self, other: &Pin<Q>) -> bool`[src]

### `impl<Ret> PartialEq<extern "C" fn() -> Ret> for extern "C" fn() -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret> PartialEq<fn() -> Ret> for fn() -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret> PartialEq<unsafe extern "C" fn() -> Ret> for unsafe extern "C" fn() -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret> PartialEq<unsafe fn() -> Ret> for unsafe fn() -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<extern "C" fn(A) -> Ret> for extern "C" fn(_: A) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<extern "C" fn(A, ...) -> Ret> for extern "C" fn(_: A, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<fn(A) -> Ret> for fn(_: A) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<unsafe extern "C" fn(A) -> Ret> for unsafe extern "C" fn(_: A) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<unsafe extern "C" fn(A, ...) -> Ret> for unsafe extern "C" fn(_: A, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A> PartialEq<unsafe fn(A) -> Ret> for unsafe fn(_: A) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<extern "C" fn(A, B) -> Ret> for extern "C" fn(_: A, _: B) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<extern "C" fn(A, B, ...) -> Ret> for extern "C" fn(_: A, _: B, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<fn(A, B) -> Ret> for fn(_: A, _: B) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<unsafe extern "C" fn(A, B) -> Ret> for unsafe extern "C" fn(_: A, _: B) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<unsafe extern "C" fn(A, B, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B> PartialEq<unsafe fn(A, B) -> Ret> for unsafe fn(_: A, _: B) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<extern "C" fn(A, B, C) -> Ret> for extern "C" fn(_: A, _: B, _: C) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<extern "C" fn(A, B, C, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<fn(A, B, C) -> Ret> for fn(_: A, _: B, _: C) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<unsafe extern "C" fn(A, B, C) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<unsafe extern "C" fn(A, B, C, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C> PartialEq<unsafe fn(A, B, C) -> Ret> for unsafe fn(_: A, _: B, _: C) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<extern "C" fn(A, B, C, D) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<extern "C" fn(A, B, C, D, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<fn(A, B, C, D) -> Ret> for fn(_: A, _: B, _: C, _: D) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<unsafe extern "C" fn(A, B, C, D) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<unsafe extern "C" fn(A, B, C, D, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D> PartialEq<unsafe fn(A, B, C, D) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<extern "C" fn(A, B, C, D, E) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<extern "C" fn(A, B, C, D, E, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<fn(A, B, C, D, E) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<unsafe extern "C" fn(A, B, C, D, E) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E> PartialEq<unsafe fn(A, B, C, D, E) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<extern "C" fn(A, B, C, D, E, F) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<fn(A, B, C, D, E, F) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F> PartialEq<unsafe fn(A, B, C, D, E, F) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<extern "C" fn(A, B, C, D, E, F, G) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<fn(A, B, C, D, E, F, G) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G> PartialEq<unsafe fn(A, B, C, D, E, F, G) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<fn(A, B, C, D, E, F, G, H) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H> PartialEq<unsafe fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<fn(A, B, C, D, E, F, G, H, I) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I> PartialEq<unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialEq<unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialEq<unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for unsafe extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L, ...) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialEq<unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K, _: L) -> Ret`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<T> PartialEq<Discriminant<T>> for Discriminant<T>`[src]

#### `fn eq(&self, rhs: &Self) -> bool`[src]

### `impl<T: PartialEq + Copy> PartialEq<Cell<T>> for Cell<T>`[src]

#### `fn eq(&self, other: &Cell<T>) -> bool`[src]

### `impl<T: PartialEq + ?Sized> PartialEq<ManuallyDrop<T>> for ManuallyDrop<T>`[src]

#### `fn eq(&self, other: &ManuallyDrop<T>) -> bool`[src]

#### `fn ne(&self, other: &ManuallyDrop<T>) -> bool`[src]

### `impl<T: PartialEq> PartialEq<Bound<T>> for Bound<T>`[src]

#### `fn eq(&self, other: &Bound<T>) -> bool`[src]

#### `fn ne(&self, other: &Bound<T>) -> bool`[src]

### `impl<T: PartialEq> PartialEq<Option<T>> for Option<T>`[src]

#### `fn eq(&self, other: &Option<T>) -> bool`[src]

#### `fn ne(&self, other: &Option<T>) -> bool`[src]

### `impl<T: PartialEq> PartialEq<Poll<T>> for Poll<T>`[src]

#### `fn eq(&self, other: &Poll<T>) -> bool`[src]

#### `fn ne(&self, other: &Poll<T>) -> bool`[src]

### `impl<T: PartialEq> PartialEq<Reverse<T>> for Reverse<T>`[src]

#### `fn eq(&self, other: &Reverse<T>) -> bool`[src]

#### `fn ne(&self, other: &Reverse<T>) -> bool`[src]

### `impl<T: PartialEq> PartialEq<OnceCell<T>> for OnceCell<T>`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<T: PartialEq> PartialEq<Wrapping<T>> for Wrapping<T>`[src]

#### `fn eq(&self, other: &Wrapping<T>) -> bool`[src]

#### `fn ne(&self, other: &Wrapping<T>) -> bool`[src]

### `impl<T: PartialEq, E: PartialEq> PartialEq<Result<T, E>> for Result<T, E>`[src]

#### `fn eq(&self, other: &Result<T, E>) -> bool`[src]

#### `fn ne(&self, other: &Result<T, E>) -> bool`[src]

### `impl<T: ?Sized + PartialEq> PartialEq<RefCell<T>> for RefCell<T>`[src]

#### `fn eq(&self, other: &RefCell<T>) -> bool`[src]

# Panics

Panics if the value in either `RefCell` is currently borrowed.

### `impl<T: ?Sized> PartialEq<*const T> for *const T`[src]

#### `fn eq(&self, other: &*const T) -> bool`[src]

### `impl<T: ?Sized> PartialEq<*mut T> for *mut T`[src]

#### `fn eq(&self, other: &*mut T) -> bool`[src]

### `impl<T: ?Sized> PartialEq<PhantomData<T>> for PhantomData<T>`[src]

#### `fn eq(&self, _other: &PhantomData<T>) -> bool`[src]

### `impl<T: ?Sized> PartialEq<NonNull<T>> for NonNull<T>`[src]

#### `fn eq(&self, other: &Self) -> bool`[src]

### `impl<Y: PartialEq, R: PartialEq> PartialEq<GeneratorState<Y, R>> for GeneratorState<Y, R>`[src]

#### `fn eq(&self, other: &GeneratorState<Y, R>) -> bool`[src]

#### `fn ne(&self, other: &GeneratorState<Y, R>) -> bool`[src]

Loading content...