PartialEq

Trait PartialEq 

1.0.0 (const: unstable) · 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):

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

  • Transitivity: if A: PartialEq<B> and B: PartialEq<C> and A: PartialEq<C>, then a == b and b == c implies a == c. This must also work for longer chains, such as when A: PartialEq<B>, B: PartialEq<C>, C: PartialEq<D>, and A: PartialEq<D> all exist.

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.

§Cross-crate considerations

Upholding the requirements stated above can become tricky when one crate implements PartialEq for a type of another crate (i.e., to allow comparing one of its own types with a type from the standard library). The recommendation is to never implement this trait for a foreign type. In other words, such a crate should do impl PartialEq<ForeignType> for LocalType, but it should not do impl PartialEq<LocalType> for ForeignType.

This avoids the problem of transitive chains that criss-cross crate boundaries: for all local types T, you may assume that no other crate will add impls that allow comparing T == U. In other words, if other crates add impls that allow building longer transitive chains U1 == ... == T == V1 == ..., then all the types that appear to the right of T must be types that the crate defining T already knows about. This rules out transitive chains where downstream crates can add new impls that “stitch together” comparisons of foreign types in ways that violate transitivity.

Not having such foreign impls also avoids forward compatibility issues where one crate adding more PartialEq implementations can cause build failures in downstream crates.

§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§

1.0.0 · Source

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

Tests for self and other values to be equal, and is used by ==.

Provided Methods§

1.0.0 · Source

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

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

Implementors§

Source§

impl PartialEq for hashbrown::TryReserveError

Source§

impl PartialEq for indexmap::GetDisjointMutError

Source§

impl PartialEq for proc_macro2::Spacing

Source§

impl PartialEq for FoundCrate

Source§

impl PartialEq for AttrStyle

Available on crate features derive or full only.
Source§

impl PartialEq for Meta

Available on crate features derive or full only.
Source§

impl PartialEq for Fields

Available on crate features derive or full only.
Source§

impl PartialEq for Data

Available on crate feature derive only.
Source§

impl PartialEq for Expr

Available on crate features derive or full only.
Source§

impl PartialEq for Member

Source§

impl PartialEq for PointerMutability

Available on crate feature full only.
Source§

impl PartialEq for RangeLimits

Available on crate feature full only.
Source§

impl PartialEq for CapturedParam

Available on crate feature full only.
Source§

impl PartialEq for GenericParam

Available on crate features derive or full only.
Source§

impl PartialEq for TraitBoundModifier

Available on crate features derive or full only.
Source§

impl PartialEq for TypeParamBound

Available on crate features derive or full only.
Source§

impl PartialEq for WherePredicate

Available on crate features derive or full only.
Source§

impl PartialEq for FnArg

Available on crate feature full only.
Source§

impl PartialEq for ForeignItem

Available on crate feature full only.
Source§

impl PartialEq for ImplItem

Available on crate feature full only.
Source§

impl PartialEq for ImplRestriction

Available on crate feature full only.
Source§

impl PartialEq for Item

Available on crate feature full only.
Source§

impl PartialEq for StaticMutability

Available on crate feature full only.
Source§

impl PartialEq for TraitItem

Available on crate feature full only.
Source§

impl PartialEq for UseTree

Available on crate feature full only.
Source§

impl PartialEq for Lit

Source§

impl PartialEq for MacroDelimiter

Available on crate features derive or full only.
Source§

impl PartialEq for BinOp

Available on crate features derive or full only.
Source§

impl PartialEq for UnOp

Available on crate features derive or full only.
Source§

impl PartialEq for Pat

Available on crate feature full only.
Source§

impl PartialEq for GenericArgument

Available on crate features derive or full only.
Source§

impl PartialEq for PathArguments

Available on crate features derive or full only.
Source§

impl PartialEq for FieldMutability

Available on crate features derive or full only.
Source§

impl PartialEq for Visibility

Available on crate features derive or full only.
Source§

impl PartialEq for Stmt

Available on crate feature full only.
Source§

impl PartialEq for ReturnType

Available on crate features derive or full only.
Source§

impl PartialEq for syn::ty::Type

Available on crate features derive or full only.
Source§

impl PartialEq for Offset

Source§

impl PartialEq for Encoding

Source§

impl PartialEq for IntegerRadix

Source§

impl PartialEq for ScalarKind

Source§

impl PartialEq for Expected

Source§

impl PartialEq for TokenKind

Source§

impl PartialEq for EventKind

Source§

impl PartialEq for Endianness

Source§

impl PartialEq for Needed

Source§

impl PartialEq for StrContext

Source§

impl PartialEq for StrContextValue

Source§

impl PartialEq for CompareResult

Source§

impl PartialEq for Equality

Source§

impl PartialEq for Target

Source§

impl PartialEq for Scope

Source§

impl PartialEq for SuppliedScope

Source§

impl PartialEq for UsageMode

Source§

impl PartialEq for ExpectedDriverKind

Source§

impl PartialEq for RepeatOver

Source§

impl PartialEq for OrigDollarHandledDiscriminants

Source§

impl PartialEq for Grouping

Source§

impl PartialEq for derive_deftly_macros::prelude::Delimiter

1.28.0 · Source§

impl PartialEq for derive_deftly_macros::prelude::fmt::Alignment

Source§

impl PartialEq for DebugAsHex

Source§

impl PartialEq for Sign

1.0.0 (const: unstable) · Source§

impl PartialEq for derive_deftly_macros::prelude::cmp::Ordering

Source§

impl PartialEq for TryReserveErrorKind

Source§

impl PartialEq for AsciiChar

1.34.0 (const: unstable) · Source§

impl PartialEq for Infallible

1.64.0 · Source§

impl PartialEq for FromBytesWithNulError

Source§

impl PartialEq for AtomicOrdering

Source§

impl PartialEq for SimdAlign

1.7.0 · Source§

impl PartialEq for IpAddr

Source§

impl PartialEq for Ipv6MulticastScope

1.0.0 · Source§

impl PartialEq for SocketAddr

1.0.0 · Source§

impl PartialEq for FpCategory

1.55.0 · Source§

impl PartialEq for IntErrorKind

1.86.0 · Source§

impl PartialEq for core::slice::GetDisjointMutError

Source§

impl PartialEq for SearchStep

1.0.0 · Source§

impl PartialEq for core::sync::atomic::Ordering

Source§

impl PartialEq for ConversionErrorKind

1.29.0 · Source§

impl PartialEq for proc_macro::Delimiter

1.29.0 · Source§

impl PartialEq for proc_macro::Spacing

1.65.0 · Source§

impl PartialEq for BacktraceStatus

1.0.0 · Source§

impl PartialEq for VarError

1.0.0 · Source§

impl PartialEq for SeekFrom

1.0.0 · Source§

impl PartialEq for ErrorKind

1.0.0 · Source§

impl PartialEq for Shutdown

Source§

impl PartialEq for BacktraceStyle

1.12.0 · Source§

impl PartialEq for RecvTimeoutError

1.0.0 · Source§

impl PartialEq for TryRecvError

1.0.0 (const: unstable) · Source§

impl PartialEq for bool

1.0.0 (const: unstable) · Source§

impl PartialEq for char

1.0.0 (const: unstable) · Source§

impl PartialEq for f16

1.0.0 (const: unstable) · Source§

impl PartialEq for f32

1.0.0 (const: unstable) · Source§

impl PartialEq for f64

1.0.0 (const: unstable) · Source§

impl PartialEq for f128

1.0.0 (const: unstable) · Source§

impl PartialEq for i8

1.0.0 (const: unstable) · Source§

impl PartialEq for i16

1.0.0 (const: unstable) · Source§

impl PartialEq for i32

1.0.0 (const: unstable) · Source§

impl PartialEq for i64

1.0.0 (const: unstable) · Source§

impl PartialEq for i128

1.0.0 (const: unstable) · Source§

impl PartialEq for isize

Source§

impl PartialEq for !

1.0.0 (const: unstable) · Source§

impl PartialEq for str

1.0.0 (const: unstable) · Source§

impl PartialEq for u8

1.0.0 (const: unstable) · Source§

impl PartialEq for u16

1.0.0 (const: unstable) · Source§

impl PartialEq for u32

1.0.0 (const: unstable) · Source§

impl PartialEq for u64

1.0.0 (const: unstable) · Source§

impl PartialEq for u128

1.0.0 (const: unstable) · Source§

impl PartialEq for ()

1.0.0 (const: unstable) · Source§

impl PartialEq for usize

Source§

impl PartialEq for block_buffer::Error

Source§

impl PartialEq for InvalidLength

Source§

impl PartialEq for InvalidBufferSize

Source§

impl PartialEq for indexmap::TryReserveError

Source§

impl PartialEq for Attribute

Available on crate features derive or full only.
Source§

impl PartialEq for MetaList

Available on crate features derive or full only.
Source§

impl PartialEq for MetaNameValue

Available on crate features derive or full only.
Source§

impl PartialEq for Field

Available on crate features derive or full only.
Source§

impl PartialEq for FieldsNamed

Available on crate features derive or full only.
Source§

impl PartialEq for FieldsUnnamed

Available on crate features derive or full only.
Source§

impl PartialEq for Variant

Available on crate features derive or full only.
Source§

impl PartialEq for DataEnum

Available on crate feature derive only.
Source§

impl PartialEq for DataStruct

Available on crate feature derive only.
Source§

impl PartialEq for DataUnion

Available on crate feature derive only.
Source§

impl PartialEq for DeriveInput

Available on crate feature derive only.
Source§

impl PartialEq for Arm

Available on crate feature full only.
Source§

impl PartialEq for ExprArray

Available on crate feature full only.
Source§

impl PartialEq for ExprAssign

Available on crate feature full only.
Source§

impl PartialEq for ExprAsync

Available on crate feature full only.
Source§

impl PartialEq for ExprAwait

Available on crate feature full only.
Source§

impl PartialEq for ExprBinary

Available on crate features derive or full only.
Source§

impl PartialEq for ExprBlock

Available on crate feature full only.
Source§

impl PartialEq for ExprBreak

Available on crate feature full only.
Source§

impl PartialEq for ExprCall

Available on crate features derive or full only.
Source§

impl PartialEq for ExprCast

Available on crate features derive or full only.
Source§

impl PartialEq for ExprClosure

Available on crate feature full only.
Source§

impl PartialEq for ExprConst

Available on crate feature full only.
Source§

impl PartialEq for ExprContinue

Available on crate feature full only.
Source§

impl PartialEq for ExprField

Available on crate features derive or full only.
Source§

impl PartialEq for ExprForLoop

Available on crate feature full only.
Source§

impl PartialEq for ExprGroup

Available on crate features derive or full only.
Source§

impl PartialEq for ExprIf

Available on crate feature full only.
Source§

impl PartialEq for ExprIndex

Available on crate features derive or full only.
Source§

impl PartialEq for ExprInfer

Available on crate feature full only.
Source§

impl PartialEq for ExprLet

Available on crate feature full only.
Source§

impl PartialEq for ExprLit

Available on crate features derive or full only.
Source§

impl PartialEq for ExprLoop

Available on crate feature full only.
Source§

impl PartialEq for ExprMacro

Available on crate features derive or full only.
Source§

impl PartialEq for ExprMatch

Available on crate feature full only.
Source§

impl PartialEq for ExprMethodCall

Available on crate features derive or full only.
Source§

impl PartialEq for ExprParen

Available on crate features derive or full only.
Source§

impl PartialEq for ExprPath

Available on crate features derive or full only.
Source§

impl PartialEq for ExprRange

Available on crate feature full only.
Source§

impl PartialEq for ExprRawAddr

Available on crate feature full only.
Source§

impl PartialEq for ExprReference

Available on crate features derive or full only.
Source§

impl PartialEq for ExprRepeat

Available on crate feature full only.
Source§

impl PartialEq for ExprReturn

Available on crate feature full only.
Source§

impl PartialEq for ExprStruct

Available on crate features derive or full only.
Source§

impl PartialEq for ExprTry

Available on crate feature full only.
Source§

impl PartialEq for ExprTryBlock

Available on crate feature full only.
Source§

impl PartialEq for ExprTuple

Available on crate features derive or full only.
Source§

impl PartialEq for ExprUnary

Available on crate features derive or full only.
Source§

impl PartialEq for ExprUnsafe

Available on crate feature full only.
Source§

impl PartialEq for ExprWhile

Available on crate feature full only.
Source§

impl PartialEq for ExprYield

Available on crate feature full only.
Source§

impl PartialEq for FieldValue

Available on crate features derive or full only.
Source§

impl PartialEq for Index

Source§

impl PartialEq for syn::expr::Label

Available on crate feature full only.
Source§

impl PartialEq for File

Available on crate feature full only.
Source§

impl PartialEq for BoundLifetimes

Available on crate features derive or full only.
Source§

impl PartialEq for ConstParam

Available on crate features derive or full only.
Source§

impl PartialEq for Generics

Available on crate features derive or full only.
Source§

impl PartialEq for LifetimeParam

Available on crate features derive or full only.
Source§

impl PartialEq for PreciseCapture

Available on crate feature full only.
Source§

impl PartialEq for PredicateLifetime

Available on crate features derive or full only.
Source§

impl PartialEq for PredicateType

Available on crate features derive or full only.
Source§

impl PartialEq for TraitBound

Available on crate features derive or full only.
Source§

impl PartialEq for TypeParam

Available on crate features derive or full only.
Source§

impl PartialEq for WhereClause

Available on crate features derive or full only.
Source§

impl PartialEq for ForeignItemFn

Available on crate feature full only.
Source§

impl PartialEq for ForeignItemMacro

Available on crate feature full only.
Source§

impl PartialEq for ForeignItemStatic

Available on crate feature full only.
Source§

impl PartialEq for ForeignItemType

Available on crate feature full only.
Source§

impl PartialEq for ImplItemConst

Available on crate feature full only.
Source§

impl PartialEq for ImplItemFn

Available on crate feature full only.
Source§

impl PartialEq for ImplItemMacro

Available on crate feature full only.
Source§

impl PartialEq for ImplItemType

Available on crate feature full only.
Source§

impl PartialEq for ItemConst

Available on crate feature full only.
Source§

impl PartialEq for ItemEnum

Available on crate feature full only.
Source§

impl PartialEq for ItemExternCrate

Available on crate feature full only.
Source§

impl PartialEq for ItemFn

Available on crate feature full only.
Source§

impl PartialEq for ItemForeignMod

Available on crate feature full only.
Source§

impl PartialEq for ItemImpl

Available on crate feature full only.
Source§

impl PartialEq for ItemMacro

Available on crate feature full only.
Source§

impl PartialEq for ItemMod

Available on crate feature full only.
Source§

impl PartialEq for ItemStatic

Available on crate feature full only.
Source§

impl PartialEq for ItemStruct

Available on crate feature full only.
Source§

impl PartialEq for ItemTrait

Available on crate feature full only.
Source§

impl PartialEq for ItemTraitAlias

Available on crate feature full only.
Source§

impl PartialEq for ItemType

Available on crate feature full only.
Source§

impl PartialEq for ItemUnion

Available on crate feature full only.
Source§

impl PartialEq for ItemUse

Available on crate feature full only.
Source§

impl PartialEq for Receiver

Available on crate feature full only.
Source§

impl PartialEq for Signature

Available on crate feature full only.
Source§

impl PartialEq for TraitItemConst

Available on crate feature full only.
Source§

impl PartialEq for TraitItemFn

Available on crate feature full only.
Source§

impl PartialEq for TraitItemMacro

Available on crate feature full only.
Source§

impl PartialEq for TraitItemType

Available on crate feature full only.
Source§

impl PartialEq for UseGlob

Available on crate feature full only.
Source§

impl PartialEq for UseGroup

Available on crate feature full only.
Source§

impl PartialEq for UseName

Available on crate feature full only.
Source§

impl PartialEq for UsePath

Available on crate feature full only.
Source§

impl PartialEq for UseRename

Available on crate feature full only.
Source§

impl PartialEq for Variadic

Available on crate feature full only.
Source§

impl PartialEq for Lifetime

Source§

impl PartialEq for LitBool

Source§

impl PartialEq for LitByte

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitByteStr

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitCStr

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitChar

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitFloat

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitInt

Available on crate feature extra-traits only.
Source§

impl PartialEq for LitStr

Available on crate feature extra-traits only.
Source§

impl PartialEq for syn::mac::Macro

Available on crate features derive or full only.
Source§

impl PartialEq for Nothing

Available on crate feature extra-traits only.
Source§

impl PartialEq for FieldPat

Available on crate feature full only.
Source§

impl PartialEq for PatIdent

Available on crate feature full only.
Source§

impl PartialEq for PatOr

Available on crate feature full only.
Source§

impl PartialEq for PatParen

Available on crate feature full only.
Source§

impl PartialEq for PatReference

Available on crate feature full only.
Source§

impl PartialEq for PatRest

Available on crate feature full only.
Source§

impl PartialEq for PatSlice

Available on crate feature full only.
Source§

impl PartialEq for PatStruct

Available on crate feature full only.
Source§

impl PartialEq for PatTuple

Available on crate feature full only.
Source§

impl PartialEq for PatTupleStruct

Available on crate feature full only.
Source§

impl PartialEq for PatType

Available on crate feature full only.
Source§

impl PartialEq for PatWild

Available on crate feature full only.
Source§

impl PartialEq for AngleBracketedGenericArguments

Available on crate features derive or full only.
Source§

impl PartialEq for AssocConst

Available on crate features derive or full only.
Source§

impl PartialEq for AssocType

Available on crate features derive or full only.
Source§

impl PartialEq for Constraint

Available on crate features derive or full only.
Source§

impl PartialEq for ParenthesizedGenericArguments

Available on crate features derive or full only.
Source§

impl PartialEq for syn::path::Path

Available on crate features derive or full only.
Source§

impl PartialEq for PathSegment

Available on crate features derive or full only.
Source§

impl PartialEq for QSelf

Available on crate features derive or full only.
Source§

impl PartialEq for VisRestricted

Available on crate features derive or full only.
Source§

impl PartialEq for Block

Available on crate feature full only.
Source§

impl PartialEq for Local

Available on crate feature full only.
Source§

impl PartialEq for LocalInit

Available on crate feature full only.
Source§

impl PartialEq for StmtMacro

Available on crate feature full only.
Source§

impl PartialEq for Abi

Available on crate features derive or full only.
Source§

impl PartialEq for BareFnArg

Available on crate features derive or full only.
Source§

impl PartialEq for BareVariadic

Available on crate features derive or full only.
Source§

impl PartialEq for TypeArray

Available on crate features derive or full only.
Source§

impl PartialEq for TypeBareFn

Available on crate features derive or full only.
Source§

impl PartialEq for TypeGroup

Available on crate features derive or full only.
Source§

impl PartialEq for TypeImplTrait

Available on crate features derive or full only.
Source§

impl PartialEq for TypeInfer

Available on crate features derive or full only.
Source§

impl PartialEq for TypeMacro

Available on crate features derive or full only.
Source§

impl PartialEq for TypeNever

Available on crate features derive or full only.
Source§

impl PartialEq for TypeParen

Available on crate features derive or full only.
Source§

impl PartialEq for TypePath

Available on crate features derive or full only.
Source§

impl PartialEq for TypePtr

Available on crate features derive or full only.
Source§

impl PartialEq for TypeReference

Available on crate features derive or full only.
Source§

impl PartialEq for TypeSlice

Available on crate features derive or full only.
Source§

impl PartialEq for TypeTraitObject

Available on crate features derive or full only.
Source§

impl PartialEq for TypeTuple

Available on crate features derive or full only.
Source§

impl PartialEq for Date

Source§

impl PartialEq for Datetime

Source§

impl PartialEq for Time

Source§

impl PartialEq for TomlError

Source§

impl PartialEq for Key

Source§

impl PartialEq for RawString

Source§

impl PartialEq for Decor

Source§

impl PartialEq for Repr

Source§

impl PartialEq for toml_parser::error::ParseError

Source§

impl PartialEq for Token

Source§

impl PartialEq for Event

Source§

impl PartialEq for Span

Source§

impl PartialEq for ATerm

Source§

impl PartialEq for B0

Source§

impl PartialEq for B1

Source§

impl PartialEq for Z0

Source§

impl PartialEq for Equal

Source§

impl PartialEq for Greater

Source§

impl PartialEq for Less

Source§

impl PartialEq for UTerm

Source§

impl PartialEq for EmptyError

Source§

impl PartialEq for BStr

Source§

impl PartialEq for Bytes

Source§

impl PartialEq for winnow::stream::range::Range

Source§

impl PartialEq for Enabled

Source§

impl PartialEq for Desig

Source§

impl PartialEq for IsUsed

Source§

impl PartialEq for derive_deftly_macros::meta::Label

Source§

impl PartialEq for InvalidIdent

Source§

impl PartialEq for DefinitionName

1.0.0 · Source§

impl PartialEq for derive_deftly_macros::prelude::fmt::Error

Source§

impl PartialEq for FormattingOptions

Source§

impl PartialEq for Assume

Source§

impl PartialEq for derive_deftly_macros::prelude::ptr::Alignment

Source§

impl PartialEq for Ident

Source§

impl PartialEq for Abstract

Available on crate feature extra-traits only.
Source§

impl PartialEq for And

Available on crate feature extra-traits only.
Source§

impl PartialEq for AndAnd

Available on crate feature extra-traits only.
Source§

impl PartialEq for AndEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for As

Available on crate feature extra-traits only.
Source§

impl PartialEq for Async

Available on crate feature extra-traits only.
Source§

impl PartialEq for At

Available on crate feature extra-traits only.
Source§

impl PartialEq for Auto

Available on crate feature extra-traits only.
Source§

impl PartialEq for Await

Available on crate feature extra-traits only.
Source§

impl PartialEq for Become

Available on crate feature extra-traits only.
Source§

impl PartialEq for derive_deftly_macros::prelude::token::Box

Available on crate feature extra-traits only.
Source§

impl PartialEq for Brace

Available on crate feature extra-traits only.
Source§

impl PartialEq for Bracket

Available on crate feature extra-traits only.
Source§

impl PartialEq for Break

Available on crate feature extra-traits only.
Source§

impl PartialEq for Caret

Available on crate feature extra-traits only.
Source§

impl PartialEq for CaretEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Colon

Available on crate feature extra-traits only.
Source§

impl PartialEq for Comma

Available on crate feature extra-traits only.
Source§

impl PartialEq for Const

Available on crate feature extra-traits only.
Source§

impl PartialEq for Continue

Available on crate feature extra-traits only.
Source§

impl PartialEq for Crate

Available on crate feature extra-traits only.
Source§

impl PartialEq for Default

Available on crate feature extra-traits only.
Source§

impl PartialEq for Do

Available on crate feature extra-traits only.
Source§

impl PartialEq for Dollar

Available on crate feature extra-traits only.
Source§

impl PartialEq for Dot

Available on crate feature extra-traits only.
Source§

impl PartialEq for DotDot

Available on crate feature extra-traits only.
Source§

impl PartialEq for DotDotDot

Available on crate feature extra-traits only.
Source§

impl PartialEq for DotDotEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Dyn

Available on crate feature extra-traits only.
Source§

impl PartialEq for Else

Available on crate feature extra-traits only.
Source§

impl PartialEq for Enum

Available on crate feature extra-traits only.
Source§

impl PartialEq for Eq

Available on crate feature extra-traits only.
Source§

impl PartialEq for EqEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Extern

Available on crate feature extra-traits only.
Source§

impl PartialEq for FatArrow

Available on crate feature extra-traits only.
Source§

impl PartialEq for Final

Available on crate feature extra-traits only.
Source§

impl PartialEq for Fn

Available on crate feature extra-traits only.
Source§

impl PartialEq for For

Available on crate feature extra-traits only.
Source§

impl PartialEq for Ge

Available on crate feature extra-traits only.
Source§

impl PartialEq for Group

Available on crate feature extra-traits only.
Source§

impl PartialEq for Gt

Available on crate feature extra-traits only.
Source§

impl PartialEq for If

Available on crate feature extra-traits only.
Source§

impl PartialEq for Impl

Available on crate feature extra-traits only.
Source§

impl PartialEq for In

Available on crate feature extra-traits only.
Source§

impl PartialEq for LArrow

Available on crate feature extra-traits only.
Source§

impl PartialEq for Le

Available on crate feature extra-traits only.
Source§

impl PartialEq for Let

Available on crate feature extra-traits only.
Source§

impl PartialEq for Loop

Available on crate feature extra-traits only.
Source§

impl PartialEq for Lt

Available on crate feature extra-traits only.
Source§

impl PartialEq for derive_deftly_macros::prelude::token::Macro

Available on crate feature extra-traits only.
Source§

impl PartialEq for Match

Available on crate feature extra-traits only.
Source§

impl PartialEq for Minus

Available on crate feature extra-traits only.
Source§

impl PartialEq for MinusEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Mod

Available on crate feature extra-traits only.
Source§

impl PartialEq for Move

Available on crate feature extra-traits only.
Source§

impl PartialEq for Mut

Available on crate feature extra-traits only.
Source§

impl PartialEq for Ne

Available on crate feature extra-traits only.
Source§

impl PartialEq for Not

Available on crate feature extra-traits only.
Source§

impl PartialEq for Or

Available on crate feature extra-traits only.
Source§

impl PartialEq for OrEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for OrOr

Available on crate feature extra-traits only.
Source§

impl PartialEq for Override

Available on crate feature extra-traits only.
Source§

impl PartialEq for Paren

Available on crate feature extra-traits only.
Source§

impl PartialEq for PathSep

Available on crate feature extra-traits only.
Source§

impl PartialEq for Percent

Available on crate feature extra-traits only.
Source§

impl PartialEq for PercentEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Plus

Available on crate feature extra-traits only.
Source§

impl PartialEq for PlusEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Pound

Available on crate feature extra-traits only.
Source§

impl PartialEq for Priv

Available on crate feature extra-traits only.
Source§

impl PartialEq for Pub

Available on crate feature extra-traits only.
Source§

impl PartialEq for Question

Available on crate feature extra-traits only.
Source§

impl PartialEq for RArrow

Available on crate feature extra-traits only.
Source§

impl PartialEq for Raw

Available on crate feature extra-traits only.
Source§

impl PartialEq for Ref

Available on crate feature extra-traits only.
Source§

impl PartialEq for Return

Available on crate feature extra-traits only.
Source§

impl PartialEq for SelfType

Available on crate feature extra-traits only.
Source§

impl PartialEq for SelfValue

Available on crate feature extra-traits only.
Source§

impl PartialEq for Semi

Available on crate feature extra-traits only.
Source§

impl PartialEq for Shl

Available on crate feature extra-traits only.
Source§

impl PartialEq for ShlEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Shr

Available on crate feature extra-traits only.
Source§

impl PartialEq for ShrEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Slash

Available on crate feature extra-traits only.
Source§

impl PartialEq for SlashEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Star

Available on crate feature extra-traits only.
Source§

impl PartialEq for StarEq

Available on crate feature extra-traits only.
Source§

impl PartialEq for Static

Available on crate feature extra-traits only.
Source§

impl PartialEq for Struct

Available on crate feature extra-traits only.
Source§

impl PartialEq for Super

Available on crate feature extra-traits only.
Source§

impl PartialEq for Tilde

Available on crate feature extra-traits only.
Source§

impl PartialEq for Trait

Available on crate feature extra-traits only.
Source§

impl PartialEq for Try

Available on crate feature extra-traits only.
Source§

impl PartialEq for derive_deftly_macros::prelude::token::Type

Available on crate feature extra-traits only.
Source§

impl PartialEq for Typeof

Available on crate feature extra-traits only.
Source§

impl PartialEq for Underscore

Available on crate feature extra-traits only.
Source§

impl PartialEq for Union

Available on crate feature extra-traits only.
Source§

impl PartialEq for Unsafe

Available on crate feature extra-traits only.
Source§

impl PartialEq for Unsized

Available on crate feature extra-traits only.
Source§

impl PartialEq for Use

Available on crate feature extra-traits only.
Source§

impl PartialEq for Virtual

Available on crate feature extra-traits only.
Source§

impl PartialEq for Where

Available on crate feature extra-traits only.
Source§

impl PartialEq for While

Available on crate feature extra-traits only.
Source§

impl PartialEq for Yield

Available on crate feature extra-traits only.
Source§

impl PartialEq for ByteString

Source§

impl PartialEq for UnorderedKeyError

1.57.0 · Source§

impl PartialEq for alloc::collections::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

1.0.0 · Source§

impl PartialEq for FromUtf8Error

1.0.0 · Source§

impl PartialEq for String

1.28.0 · Source§

impl PartialEq for Layout

1.50.0 · Source§

impl PartialEq for LayoutError

Source§

impl PartialEq for AllocError

1.0.0 (const: unstable) · Source§

impl PartialEq for TypeId

Source§

impl PartialEq for ByteStr

1.34.0 · Source§

impl PartialEq for CharTryFromError

1.20.0 · Source§

impl PartialEq for ParseCharError

1.9.0 · Source§

impl PartialEq for DecodeUtf16Error

1.59.0 · Source§

impl PartialEq for TryFromCharError

1.27.0 · Source§

impl PartialEq for CpuidResult

1.64.0 · Source§

impl PartialEq for CStr

1.69.0 · Source§

impl PartialEq for FromBytesUntilNulError

1.33.0 · Source§

impl PartialEq for PhantomPinned

1.0.0 · Source§

impl PartialEq for Ipv4Addr

1.0.0 · Source§

impl PartialEq for Ipv6Addr

1.0.0 · Source§

impl PartialEq for AddrParseError

1.0.0 · Source§

impl PartialEq for SocketAddrV4

1.0.0 · Source§

impl PartialEq for SocketAddrV6

1.0.0 · Source§

impl PartialEq for ParseFloatError

1.0.0 · Source§

impl PartialEq for ParseIntError

1.34.0 · Source§

impl PartialEq for TryFromIntError

1.0.0 (const: unstable) · Source§

impl PartialEq for RangeFull

1.10.0 · Source§

impl PartialEq for Location<'_>

1.0.0 · Source§

impl PartialEq for ParseBoolError

1.0.0 · Source§

impl PartialEq for Utf8Error

1.36.0 · Source§

impl PartialEq for RawWaker

1.36.0 · Source§

impl PartialEq for RawWakerVTable

1.3.0 · Source§

impl PartialEq for Duration

1.66.0 · Source§

impl PartialEq for TryFromFloatSecsError

1.0.0 · Source§

impl PartialEq for OsStr

1.0.0 · Source§

impl PartialEq for OsString

1.1.0 · Source§

impl PartialEq for FileType

1.0.0 · Source§

impl PartialEq for Permissions

Source§

impl PartialEq for UCred

Source§

impl PartialEq for NormalizeError

1.0.0 · Source§

impl PartialEq for std::path::Path

1.0.0 · Source§

impl PartialEq for PathBuf

1.7.0 · Source§

impl PartialEq for StripPrefixError

1.61.0 · Source§

impl PartialEq for ExitCode

1.0.0 · Source§

impl PartialEq for ExitStatus

Source§

impl PartialEq for ExitStatusError

1.0.0 · Source§

impl PartialEq for Output

1.0.0 · Source§

impl PartialEq for RecvError

1.5.0 · Source§

impl PartialEq for WaitTimeoutResult

1.19.0 · Source§

impl PartialEq for ThreadId

1.26.0 · Source§

impl PartialEq for AccessError

1.8.0 · Source§

impl PartialEq for Instant

1.8.0 · Source§

impl PartialEq for SystemTime

§

impl PartialEq for ParseError

§

impl PartialEq for Position

Source§

impl PartialEq<&str> for Key

1.29.0 · Source§

impl PartialEq<&str> for OsString

1.90.0 · Source§

impl PartialEq<&CStr> for Cow<'_, CStr>

Available on non-no_global_oom_handling only.
1.90.0 · Source§

impl PartialEq<&CStr> for CString

1.90.0 · Source§

impl PartialEq<&CStr> for CStr

1.90.0 · Source§

impl PartialEq<Cow<'_, CStr>> for CString

Available on non-no_global_oom_handling only.
1.90.0 · Source§

impl PartialEq<Cow<'_, CStr>> for CStr

Available on non-no_global_oom_handling only.
1.16.0 · Source§

impl PartialEq<IpAddr> for Ipv4Addr

1.16.0 · Source§

impl PartialEq<IpAddr> for Ipv6Addr

1.50.0 · Source§

impl PartialEq<char> for Punct

Source§

impl PartialEq<str> for Key

Source§

impl PartialEq<str> for KeyMut<'_>

1.0.0 · Source§

impl PartialEq<str> for OsStr

1.0.0 · Source§

impl PartialEq<str> for OsString

1.91.0 · Source§

impl PartialEq<str> for std::path::Path

1.91.0 · Source§

impl PartialEq<str> for PathBuf

1.90.0 · Source§

impl PartialEq<CString> for Cow<'_, CStr>

Available on non-no_global_oom_handling only.
1.90.0 · Source§

impl PartialEq<CString> for CStr

Source§

impl PartialEq<String> for Key

Source§

impl PartialEq<String> for KeyMut<'_>

1.91.0 · Source§

impl PartialEq<String> for std::path::Path

1.91.0 · Source§

impl PartialEq<String> for PathBuf

1.90.0 · Source§

impl PartialEq<CStr> for Cow<'_, CStr>

Available on non-no_global_oom_handling only.
1.90.0 · Source§

impl PartialEq<CStr> for CString

1.16.0 · Source§

impl PartialEq<Ipv4Addr> for IpAddr

1.16.0 · Source§

impl PartialEq<Ipv6Addr> for IpAddr

1.52.0 · Source§

impl PartialEq<Punct> for char

1.0.0 · Source§

impl PartialEq<OsStr> for str

1.8.0 · Source§

impl PartialEq<OsStr> for std::path::Path

1.8.0 · Source§

impl PartialEq<OsStr> for PathBuf

1.0.0 · Source§

impl PartialEq<OsString> for str

1.8.0 · Source§

impl PartialEq<OsString> for std::path::Path

1.8.0 · Source§

impl PartialEq<OsString> for PathBuf

1.91.0 · Source§

impl PartialEq<Path> for str

1.91.0 · Source§

impl PartialEq<Path> for String

1.8.0 · Source§

impl PartialEq<Path> for OsStr

1.8.0 · Source§

impl PartialEq<Path> for OsString

1.6.0 · Source§

impl PartialEq<Path> for PathBuf

1.91.0 · Source§

impl PartialEq<PathBuf> for str

1.91.0 · Source§

impl PartialEq<PathBuf> for String

1.8.0 · Source§

impl PartialEq<PathBuf> for OsStr

1.8.0 · Source§

impl PartialEq<PathBuf> for OsString

1.6.0 · Source§

impl PartialEq<PathBuf> for std::path::Path

Source§

impl<'a> PartialEq for Utf8Pattern<'a>

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

impl<'a> PartialEq for syn::buffer::Cursor<'a>

Source§

impl<'a> PartialEq for ImplGenerics<'a>

Available on crate feature extra-traits only.
Source§

impl<'a> PartialEq for Turbofish<'a>

Available on crate feature extra-traits only.
Source§

impl<'a> PartialEq for TypeGenerics<'a>

Available on crate feature extra-traits only.
Source§

impl<'a> PartialEq for PhantomContravariantLifetime<'a>

Source§

impl<'a> PartialEq for PhantomCovariantLifetime<'a>

Source§

impl<'a> PartialEq for PhantomInvariantLifetime<'a>

1.79.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'a> PartialEq<&'a ByteStr> for Cow<'a, ByteStr>

Source§

impl<'a> PartialEq<&'a ByteStr> for Cow<'a, [u8]>

1.8.0 · Source§

impl<'a> PartialEq<&'a OsStr> for std::path::Path

1.8.0 · Source§

impl<'a> PartialEq<&'a OsStr> 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.6.0 · Source§

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

Source§

impl<'a> PartialEq<&'a [u8]> for BStr

Source§

impl<'a> PartialEq<&'a [u8]> for Bytes

Source§

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

Source§

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

Source§

impl<'a> PartialEq<&ByteStr> for ByteString

Source§

impl<'a> PartialEq<&[u8]> for ByteString

Source§

impl<'a> PartialEq<&[u8]> for ByteStr

Source§

impl<'a> PartialEq<Cow<'_, str>> for ByteString

Source§

impl<'a> PartialEq<Cow<'_, ByteStr>> for ByteString

Source§

impl<'a> PartialEq<Cow<'_, [u8]>> for ByteString

Source§

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

Source§

impl<'a> PartialEq<Cow<'a, ByteStr>> for &'a ByteStr

1.8.0 · Source§

impl<'a> PartialEq<Cow<'a, OsStr>> for std::path::Path

1.8.0 · Source§

impl<'a> PartialEq<Cow<'a, OsStr>> 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.6.0 · Source§

impl<'a> PartialEq<Cow<'a, Path>> for std::path::Path

1.6.0 · Source§

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

Source§

impl<'a> PartialEq<Cow<'a, [u8]>> for &'a ByteStr

Source§

impl<'a> PartialEq<str> for BStr

Source§

impl<'a> PartialEq<str> for Bytes

Source§

impl<'a> PartialEq<str> for ByteString

Source§

impl<'a> PartialEq<str> for ByteStr

Source§

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

Source§

impl<'a> PartialEq<BStr> for &'a [u8]

Source§

impl<'a> PartialEq<BStr> for str

Source§

impl<'a> PartialEq<BStr> for [u8]

Source§

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

Source§

impl<'a> PartialEq<Bytes> for &'a [u8]

Source§

impl<'a> PartialEq<Bytes> for str

Source§

impl<'a> PartialEq<Bytes> for [u8]

Source§

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

Source§

impl<'a> PartialEq<ByteString> for &ByteStr

Source§

impl<'a> PartialEq<ByteString> for &[u8]

Source§

impl<'a> PartialEq<ByteString> for Cow<'_, str>

Source§

impl<'a> PartialEq<ByteString> for Cow<'_, ByteStr>

Source§

impl<'a> PartialEq<ByteString> for Cow<'_, [u8]>

Source§

impl<'a> PartialEq<ByteString> for str

Source§

impl<'a> PartialEq<ByteString> for String

Source§

impl<'a> PartialEq<ByteString> for Vec<u8>

Source§

impl<'a> PartialEq<ByteString> for ByteStr

Source§

impl<'a> PartialEq<ByteString> for [u8]

Source§

impl<'a> PartialEq<String> for ByteString

Source§

impl<'a> PartialEq<String> for ByteStr

Source§

impl<'a> PartialEq<Vec<u8>> for ByteString

Source§

impl<'a> PartialEq<Vec<u8>> for ByteStr

Source§

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

Source§

impl<'a> PartialEq<ByteStr> for &[u8]

Source§

impl<'a> PartialEq<ByteStr> for str

Source§

impl<'a> PartialEq<ByteStr> for ByteString

Source§

impl<'a> PartialEq<ByteStr> for String

Source§

impl<'a> PartialEq<ByteStr> for Vec<u8>

Source§

impl<'a> PartialEq<ByteStr> for [u8]

1.8.0 · Source§

impl<'a> PartialEq<OsStr> for &'a std::path::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 std::path::Path

1.8.0 · Source§

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

1.8.0 · Source§

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

1.8.0 · Source§

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

1.6.0 · Source§

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

1.8.0 · Source§

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

1.6.0 · Source§

impl<'a> PartialEq<PathBuf> for &'a std::path::Path

1.8.0 · Source§

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

1.6.0 · Source§

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

Source§

impl<'a> PartialEq<[u8]> for BStr

Source§

impl<'a> PartialEq<[u8]> for Bytes

Source§

impl<'a> PartialEq<[u8]> for ByteString

Source§

impl<'a> PartialEq<[u8]> for ByteStr

1.0.0 · Source§

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

1.8.0 · Source§

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

1.8.0 · Source§

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

1.0.0 · Source§

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

1.8.0 · Source§

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

1.8.0 · Source§

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

1.6.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

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<'a, Path>> for &'b OsStr

1.6.0 · Source§

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

1.8.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · 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

1.0.0 · 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<'i> PartialEq for Source<'i>

Source§

impl<'k> PartialEq for KeyMut<'k>

Source§

impl<'r> PartialEq for Fname<'r>

Source§

impl<'s> PartialEq<&'s str> for KeyMut<'s>

Source§

impl<'t, T> PartialEq for TokenSlice<'t, T>
where T: PartialEq,

§

impl<A, B> PartialEq for EitherOrBoth<A, B>
where A: PartialEq, B: PartialEq,

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.55.0 (const: unstable) · Source§

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

Source§

impl<C> PartialEq for ContextError<C>
where C: PartialEq,

Source§

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

Source§

impl<E> PartialEq for ErrMode<E>
where E: PartialEq,

1.4.0 · Source§

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

1.29.0 · Source§

impl<H> PartialEq for BuildHasherDefault<H>

Source§

impl<I> PartialEq for InputError<I>
where I: PartialEq + Clone,

Source§

impl<I> PartialEq for LocatingSlice<I>
where I: PartialEq,

Source§

impl<I> PartialEq for Partial<I>
where I: PartialEq,

Source§

impl<I, E> PartialEq for winnow::error::ParseError<I, E>
where I: PartialEq, E: PartialEq,

Source§

impl<I, S> PartialEq for Stateful<I, S>
where I: PartialEq, S: PartialEq,

1.0.0 (const: unstable) · Source§

impl<Idx> PartialEq for core::ops::range::Range<Idx>
where Idx: PartialEq,

1.0.0 (const: unstable) · Source§

impl<Idx> PartialEq for core::ops::range::RangeFrom<Idx>
where Idx: PartialEq,

1.26.0 (const: unstable) · Source§

impl<Idx> PartialEq for core::ops::range::RangeInclusive<Idx>
where Idx: PartialEq,

1.0.0 (const: unstable) · Source§

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

1.26.0 · Source§

impl<Idx> PartialEq for core::ops::range::RangeToInclusive<Idx>
where Idx: PartialEq,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<K, V1, S1, V2, S2> PartialEq<IndexMap<K, V2, S2>> for IndexMap<K, V1, S1>
where K: Hash + Eq, V1: PartialEq<V2>, S1: BuildHasher, S2: BuildHasher,

1.0.0 · Source§

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

Source§

impl<K, V, K2, V2> PartialEq<Slice<K2, V2>> for indexmap::map::slice::Slice<K, V>
where K: PartialEq<K2>, V: PartialEq<V2>,

Source§

impl<K, V, K2, V2> PartialEq<Slice<K2, V2>> for [(K, V)]
where K: PartialEq<K2>, V: PartialEq<V2>,

Source§

impl<K, V, K2, V2> PartialEq<[(K2, V2)]> for indexmap::map::slice::Slice<K, V>
where K: PartialEq<K2>, V: PartialEq<V2>,

Source§

impl<K, V, K2, V2, const N: usize> PartialEq<[(K2, V2); N]> for indexmap::map::slice::Slice<K, V>
where K: PartialEq<K2>, V: PartialEq<V2>,

1.0.0 · Source§

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

Source§

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

Source§

impl<K, V, const N: usize, K2, V2> PartialEq<Slice<K2, V2>> for [(K, V); N]
where K: PartialEq<K2>, V: PartialEq<V2>,

Source§

impl<L, R> PartialEq for Either<L, R>
where L: PartialEq, R: PartialEq,

Source§

impl<M: PartialEq> PartialEq for UsageInfo<M>

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 (const: unstable) · Source§

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

1.0.0 (const: unstable) · 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 SendTimeoutError<T>
where T: PartialEq,

1.0.0 · Source§

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

1.0.0 · Source§

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

Pointer equality is by address, as produced by the <*const T>::addr method.

1.0.0 · Source§

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

Pointer equality is by address, as produced by the <*mut T>::addr method.

1.0.0 (const: unstable) · Source§

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

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

Source§

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

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.25.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.70.0 · Source§

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

1.0.0 · Source§

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

Source§

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

Source§

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

Source§

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

1.28.0 (const: unstable) · Source§

impl<T> PartialEq for NonZero<T>

1.74.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<T> PartialEq for std::io::cursor::Cursor<T>
where T: PartialEq,

1.0.0 · Source§

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

1.70.0 · Source§

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

1.19.0 (const: unstable) · Source§

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

§

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

§

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

§

impl<T> PartialEq<T> for Void

Source§

impl<T> PartialEq<T> for Ident
where T: AsRef<str> + ?Sized,

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

Source§

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

1.0.0 · Source§

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

Source§

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

1.0.0 (const: unstable) · Source§

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

Source§

impl<T, N> PartialEq for GenericArray<T, N>
where T: PartialEq, N: ArrayLength<T>,

Source§

impl<T, P> PartialEq for Punctuated<T, P>
where T: PartialEq, P: PartialEq,

Available on crate feature extra-traits only.
Source§

impl<T, S1, S2> PartialEq<IndexSet<T, S2>> for IndexSet<T, S1>
where T: Hash + Eq, S1: BuildHasher, S2: BuildHasher,

Source§

impl<T, S> PartialEq for Checkpoint<T, S>
where T: PartialEq,

1.0.0 · Source§

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

Source§

impl<T, S, A> PartialEq for hashbrown::set::HashSet<T, S, A>
where T: Eq + Hash, S: BuildHasher, A: Allocator,

1.0.0 · Source§

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

1.0.0 · Source§

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

1.0.0 (const: unstable) · Source§

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

Source§

impl<T, U> PartialEq<[U]> for indexmap::set::slice::Slice<T>
where T: PartialEq<U>,

Source§

impl<T, U> PartialEq<Slice<U>> for [T]
where T: PartialEq<U>,

Source§

impl<T, U> PartialEq<Slice<U>> for indexmap::set::slice::Slice<T>
where T: PartialEq<U>,

Source§

impl<T, U> PartialEq<Exclusive<U>> for Exclusive<T>
where T: Sync + PartialEq<U> + ?Sized, U: Sync + ?Sized,

1.0.0 · 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>,

1.0.0 · 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>,

1.0.0 · 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>,

1.0.0 · 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>,

1.0.0 · 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>,

1.0.0 · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

1.0.0 (const: unstable) · Source§

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

Source§

impl<T, U, const N: usize> PartialEq<[U; N]> for indexmap::set::slice::Slice<T>
where T: PartialEq<U>,

1.0.0 (const: unstable) · Source§

impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
where 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<T, const N: usize, U> PartialEq<Slice<U>> for [T; N]
where T: PartialEq<U>,

Source§

impl<T: AsRef<str> + ?Sized> PartialEq<T> for IdentAny

Source§

impl<U> PartialEq for NInt<U>
where U: PartialEq + Unsigned + NonZero,

Source§

impl<U> PartialEq for PInt<U>
where U: PartialEq + Unsigned + NonZero,

Source§

impl<U, B> PartialEq for UInt<U, B>
where U: PartialEq, B: PartialEq,

Source§

impl<V, A> PartialEq for TArr<V, A>
where V: PartialEq, A: PartialEq,

Source§

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

Source§

impl<const N: usize> PartialEq<&[u8; N]> for ByteString

Source§

impl<const N: usize> PartialEq<&[u8; N]> for ByteStr

Source§

impl<const N: usize> PartialEq<ByteString> for &[u8; N]

Source§

impl<const N: usize> PartialEq<ByteString> for [u8; N]

Source§

impl<const N: usize> PartialEq<ByteStr> for &[u8; N]

Source§

impl<const N: usize> PartialEq<ByteStr> for [u8; N]

Source§

impl<const N: usize> PartialEq<[u8; N]> for ByteString

Source§

impl<const N: usize> PartialEq<[u8; N]> for ByteStr