wasmtime_environ::__core::prelude::rust_2024

Trait PartialEq

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 { ... } }
๐Ÿ”ฌThis is a nightly-only experimental API. (prelude_2024)
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ยง

source

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

๐Ÿ”ฌThis is a nightly-only experimental API. (prelude_2024)

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

Provided Methodsยง

source

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

๐Ÿ”ฌThis is a nightly-only experimental API. (prelude_2024)

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

Implementorsยง

sourceยง

impl PartialEq for ConstOp

sourceยง

impl PartialEq for EngineOrModuleTypeIndex

sourceยง

impl PartialEq for EntityIndex

sourceยง

impl PartialEq for Trap

sourceยง

impl PartialEq for VMGcKind

sourceยง

impl PartialEq for WasmCompositeType

sourceยง

impl PartialEq for WasmHeapTopType

sourceยง

impl PartialEq for WasmHeapType

sourceยง

impl PartialEq for WasmStorageType

sourceยง

impl PartialEq for WasmValType

sourceยง

impl PartialEq for LibCall

sourceยง

impl PartialEq for BlockType

sourceยง

impl PartialEq for CanonicalOption

sourceยง

impl PartialEq for ComdatSymbolKind

sourceยง

impl PartialEq for ComponentExternalKind

sourceยง

impl PartialEq for ComponentOuterAliasKind

sourceยง

impl PartialEq for ComponentTypeRef

sourceยง

impl PartialEq for ComponentValType

sourceยง

impl PartialEq for CompositeType

sourceยง

impl PartialEq for Encoding

sourceยง

impl PartialEq for ExternalKind

sourceยง

impl PartialEq for FrameKind

sourceยง

impl PartialEq for HeapType

sourceยง

impl PartialEq for InstantiationArgKind

sourceยง

impl PartialEq for wasmtime_environ::wasmparser::Ordering

sourceยง

impl PartialEq for OuterAliasKind

sourceยง

impl PartialEq for PrimitiveValType

sourceยง

impl PartialEq for RelocAddendKind

sourceยง

impl PartialEq for RelocationType

sourceยง

impl PartialEq for StorageType

sourceยง

impl PartialEq for TypeBounds

sourceยง

impl PartialEq for UnpackedIndex

sourceยง

impl PartialEq for ValType

sourceยง

impl PartialEq for ComponentNameKind<'_>

sourceยง

impl PartialEq for AnyTypeId

sourceยง

impl PartialEq for ComponentAnyTypeId

sourceยง

impl PartialEq for ComponentCoreTypeId

sourceยง

impl PartialEq for AsciiChar

1.0.0 ยท sourceยง

impl PartialEq for wasmtime_environ::__core::cmp::Ordering

1.34.0 ยท sourceยง

impl PartialEq for Infallible

1.28.0 ยท sourceยง

impl PartialEq for wasmtime_environ::__core::fmt::Alignment

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

sourceยง

impl PartialEq for SearchStep

1.0.0 ยท sourceยง

impl PartialEq for wasmtime_environ::__core::sync::atomic::Ordering

sourceยง

impl PartialEq for TryReserveErrorKind

sourceยง

impl PartialEq for hashbrown::TryReserveError

sourceยง

impl PartialEq for AddressSize

sourceยง

impl PartialEq for object::common::Architecture

sourceยง

impl PartialEq for object::common::BinaryFormat

sourceยง

impl PartialEq for ComdatKind

sourceยง

impl PartialEq for FileFlags

sourceยง

impl PartialEq for RelocationEncoding

sourceยง

impl PartialEq for RelocationFlags

sourceยง

impl PartialEq for RelocationKind

sourceยง

impl PartialEq for SectionFlags

sourceยง

impl PartialEq for SectionKind

sourceยง

impl PartialEq for object::common::SegmentFlags

sourceยง

impl PartialEq for SubArchitecture

sourceยง

impl PartialEq for SymbolKind

sourceยง

impl PartialEq for SymbolScope

sourceยง

impl PartialEq for object::endian::Endianness

sourceยง

impl PartialEq for CompressionFormat

sourceยง

impl PartialEq for FileKind

sourceยง

impl PartialEq for ObjectKind

sourceยง

impl PartialEq for RelocationTarget

sourceยง

impl PartialEq for SymbolSection

sourceยง

impl PartialEq for Op

sourceยง

impl PartialEq for CDataModel

sourceยง

impl PartialEq for Size

sourceยง

impl PartialEq for ParseError

sourceยง

impl PartialEq for Aarch64Architecture

sourceยง

impl PartialEq for target_lexicon::targets::Architecture

sourceยง

impl PartialEq for ArmArchitecture

sourceยง

impl PartialEq for target_lexicon::targets::BinaryFormat

sourceยง

impl PartialEq for CustomVendor

sourceยง

impl PartialEq for Environment

sourceยง

impl PartialEq for Mips32Architecture

sourceยง

impl PartialEq for Mips64Architecture

sourceยง

impl PartialEq for OperatingSystem

sourceยง

impl PartialEq for Riscv32Architecture

sourceยง

impl PartialEq for Riscv64Architecture

sourceยง

impl PartialEq for Vendor

sourceยง

impl PartialEq for X86_32Architecture

sourceยง

impl PartialEq for CallingConvention

sourceยง

impl PartialEq for target_lexicon::triple::Endianness

sourceยง

impl PartialEq for PointerWidth

1.0.0 ยท sourceยง

impl PartialEq for bool

1.0.0 ยท sourceยง

impl PartialEq for char

1.0.0 ยท sourceยง

impl PartialEq for f16

1.0.0 ยท sourceยง

impl PartialEq for f32

1.0.0 ยท sourceยง

impl PartialEq for f64

1.0.0 ยท sourceยง

impl PartialEq for f128

1.0.0 ยท sourceยง

impl PartialEq for i8

1.0.0 ยท sourceยง

impl PartialEq for i16

1.0.0 ยท sourceยง

impl PartialEq for i32

1.0.0 ยท sourceยง

impl PartialEq for i64

1.0.0 ยท sourceยง

impl PartialEq for i128

1.0.0 ยท sourceยง

impl PartialEq for isize

sourceยง

impl PartialEq for !

1.0.0 ยท sourceยง

impl PartialEq for str

1.0.0 ยท sourceยง

impl PartialEq for u8

1.0.0 ยท sourceยง

impl PartialEq for u16

1.0.0 ยท sourceยง

impl PartialEq for u32

1.0.0 ยท sourceยง

impl PartialEq for u64

1.0.0 ยท sourceยง

impl PartialEq for u128

1.0.0 ยท sourceยง

impl PartialEq for ()

1.0.0 ยท sourceยง

impl PartialEq for usize

1.0.0 ยท sourceยง

impl PartialEq for String

sourceยง

impl PartialEq for BuiltinFunctionIndex

sourceยง

impl PartialEq for CallIndirectSiteIndex

sourceยง

impl PartialEq for ConstExpr

sourceยง

impl PartialEq for DataIndex

sourceยง

impl PartialEq for DefinedFuncIndex

sourceยง

impl PartialEq for DefinedGlobalIndex

sourceยง

impl PartialEq for DefinedMemoryIndex

sourceยง

impl PartialEq for DefinedTableIndex

sourceยง

impl PartialEq for ElemIndex

sourceยง

impl PartialEq for EngineInternedRecGroupIndex

sourceยง

impl PartialEq for FilePos

sourceยง

impl PartialEq for FuncIndex

sourceยง

impl PartialEq for FuncRefIndex

sourceยง

impl PartialEq for Global

sourceยง

impl PartialEq for GlobalIndex

sourceยง

impl PartialEq for InstructionAddressMap

sourceยง

impl PartialEq for Memory

sourceยง

impl PartialEq for MemoryIndex

sourceยง

impl PartialEq for ModuleInternedRecGroupIndex

sourceยง

impl PartialEq for ModuleInternedTypeIndex

sourceยง

impl PartialEq for OwnedMemoryIndex

sourceยง

impl PartialEq for RecGroupRelativeTypeIndex

sourceยง

impl PartialEq for StaticModuleIndex

sourceยง

impl PartialEq for Table

sourceยง

impl PartialEq for TableIndex

sourceยง

impl PartialEq for Tag

sourceยง

impl PartialEq for TagIndex

sourceยง

impl PartialEq for TrapInformation

sourceยง

impl PartialEq for TypeIndex

sourceยง

impl PartialEq for VMSharedTypeIndex

sourceยง

impl PartialEq for WasmArrayType

sourceยง

impl PartialEq for WasmFieldType

sourceยง

impl PartialEq for WasmFuncType

sourceยง

impl PartialEq for WasmRecGroup

sourceยง

impl PartialEq for WasmRefType

sourceยง

impl PartialEq for WasmStructType

sourceยง

impl PartialEq for WasmSubType

sourceยง

impl PartialEq for ComponentName

sourceยง

impl PartialEq for KebabStr

sourceยง

impl PartialEq for KebabString

sourceยง

impl PartialEq for ArrayType

sourceยง

impl PartialEq for FieldType

sourceยง

impl PartialEq for FuncType

sourceยง

impl PartialEq for GlobalType

sourceยง

impl PartialEq for Ieee32

sourceยง

impl PartialEq for Ieee64

sourceยง

impl PartialEq for MemoryType

sourceยง

impl PartialEq for PackedIndex

sourceยง

impl PartialEq for RecGroup

sourceยง

impl PartialEq for RefType

sourceยง

impl PartialEq for RelocationEntry

sourceยง

impl PartialEq for wasmtime_environ::wasmparser::SegmentFlags

sourceยง

impl PartialEq for StructType

sourceยง

impl PartialEq for SubType

sourceยง

impl PartialEq for wasmtime_environ::wasmparser::SymbolFlags

sourceยง

impl PartialEq for TableType

sourceยง

impl PartialEq for V128

sourceยง

impl PartialEq for ValidatorId

sourceยง

impl PartialEq for AliasableResourceId

sourceยง

impl PartialEq for ComponentCoreInstanceTypeId

sourceยง

impl PartialEq for ComponentCoreModuleTypeId

sourceยง

impl PartialEq for ComponentDefinedTypeId

sourceยง

impl PartialEq for ComponentFuncTypeId

sourceยง

impl PartialEq for ComponentInstanceTypeId

sourceยง

impl PartialEq for ComponentTypeId

sourceยง

impl PartialEq for ComponentValueTypeId

sourceยง

impl PartialEq for CoreTypeId

sourceยง

impl PartialEq for RecGroupId

sourceยง

impl PartialEq for ResourceId

sourceยง

impl PartialEq for AllocError

1.28.0 ยท sourceยง

impl PartialEq for Layout

1.50.0 ยท sourceยง

impl PartialEq for LayoutError

1.0.0 ยท sourceยง

impl PartialEq for TypeId

1.27.0 ยท sourceยง

impl PartialEq for CpuidResult

1.34.0 ยท sourceยง

impl PartialEq for CharTryFromError

1.9.0 ยท sourceยง

impl PartialEq for DecodeUtf16Error

1.20.0 ยท sourceยง

impl PartialEq for ParseCharError

1.59.0 ยท sourceยง

impl PartialEq for TryFromCharError

1.64.0 ยท sourceยง

impl PartialEq for CStr

1.69.0 ยท sourceยง

impl PartialEq for FromBytesUntilNulError

1.64.0 ยท sourceยง

impl PartialEq for FromBytesWithNulError

1.0.0 ยท sourceยง

impl PartialEq for wasmtime_environ::__core::fmt::Error

1.33.0 ยท sourceยง

impl PartialEq for PhantomPinned

sourceยง

impl PartialEq for Assume

1.0.0 ยท sourceยง

impl PartialEq for AddrParseError

1.0.0 ยท sourceยง

impl PartialEq for Ipv4Addr

1.0.0 ยท sourceยง

impl PartialEq for Ipv6Addr

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

sourceยง

impl PartialEq for wasmtime_environ::__core::ptr::Alignment

1.0.0 ยท sourceยง

impl PartialEq for RangeFull

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

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

sourceยง

impl PartialEq for indexmap::TryReserveError

sourceยง

impl PartialEq for BigEndian

sourceยง

impl PartialEq for LittleEndian

sourceยง

impl PartialEq for CompressedFileRange

sourceยง

impl PartialEq for object::read::Error

sourceยง

impl PartialEq for SectionIndex

sourceยง

impl PartialEq for SymbolIndex

sourceยง

impl PartialEq for BuildMetadata

sourceยง

impl PartialEq for Comparator

sourceยง

impl PartialEq for Prerelease

sourceยง

impl PartialEq for Version

sourceยง

impl PartialEq for VersionReq

sourceยง

impl PartialEq for IgnoredAny

sourceยง

impl PartialEq for serde::de::value::Error

sourceยง

impl PartialEq for DefaultToHost

sourceยง

impl PartialEq for DefaultToUnknown

sourceยง

impl PartialEq for Triple

1.16.0 ยท sourceยง

impl PartialEq<IpAddr> for Ipv4Addr

1.16.0 ยท sourceยง

impl PartialEq<IpAddr> for Ipv6Addr

sourceยง

impl PartialEq<KebabStr> for KebabString

sourceยง

impl PartialEq<KebabString> for KebabStr

1.16.0 ยท sourceยง

impl PartialEq<Ipv4Addr> for IpAddr

1.16.0 ยท sourceยง

impl PartialEq<Ipv6Addr> for IpAddr

sourceยง

impl<'a> PartialEq for FlagValue<'a>

sourceยง

impl<'a> PartialEq for ComponentDefinedType<'a>

sourceยง

impl<'a> PartialEq for Unexpected<'a>

sourceยง

impl<'a> PartialEq for DependencyName<'a>

sourceยง

impl<'a> PartialEq for HashName<'a>

sourceยง

impl<'a> PartialEq for InterfaceName<'a>

sourceยง

impl<'a> PartialEq for ResourceFunc<'a>

sourceยง

impl<'a> PartialEq for UrlName<'a>

sourceยง

impl<'a> PartialEq for VariantCase<'a>

1.10.0 ยท sourceยง

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

1.79.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

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.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.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<'data> PartialEq for CodeView<'data>

sourceยง

impl<'data> PartialEq for CompressedData<'data>

sourceยง

impl<'data> PartialEq for Export<'data>

sourceยง

impl<'data> PartialEq for Import<'data>

sourceยง

impl<'data> PartialEq for ObjectMapEntry<'data>

sourceยง

impl<'data> PartialEq for SymbolMapName<'data>

sourceยง

impl<'data> PartialEq for Bytes<'data>

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

sourceยง

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

1.55.0 ยท sourceยง

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

sourceยง

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

sourceยง

impl<E> PartialEq for I16<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for I32<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for I64<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U16<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U32<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U64<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for I16Bytes<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for I32Bytes<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for I64Bytes<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U16Bytes<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U32Bytes<E>
where E: PartialEq + Endian,

sourceยง

impl<E> PartialEq for U64Bytes<E>
where E: PartialEq + Endian,

1.4.0 ยท sourceยง

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

1.29.0 ยท sourceยง

impl<H> PartialEq for BuildHasherDefault<H>

1.0.0 ยท sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::Range<Idx>
where Idx: PartialEq,

1.0.0 ยท sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::RangeFrom<Idx>
where Idx: PartialEq,

1.26.0 ยท sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::RangeInclusive<Idx>
where Idx: PartialEq,

sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::Range<Idx>
where Idx: PartialEq,

sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::RangeFrom<Idx>
where Idx: PartialEq,

sourceยง

impl<Idx> PartialEq for wasmtime_environ::__core::range::RangeInclusive<Idx>
where Idx: PartialEq,

1.0.0 ยท sourceยง

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

1.26.0 ยท sourceยง

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

sourceยง

impl<K, 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,

sourceยง

impl<K, V> PartialEq for PrimaryMap<K, V>
where K: PartialEq + EntityRef, V: PartialEq,

sourceยง

impl<K, V> PartialEq for SecondaryMap<K, V>
where K: EntityRef, V: Clone + PartialEq,

sourceยง

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

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, S, A> PartialEq for HashMap<K, V, S, A>
where K: Eq + Hash, V: PartialEq, S: BuildHasher, A: Allocator,

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

sourceยง

impl<Section, Symbol> PartialEq for object::common::SymbolFlags<Section, Symbol>
where Section: PartialEq, Symbol: PartialEq,

1.0.0 ยท sourceยง

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

1.17.0 ยท sourceยง

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

1.36.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

impl<T> PartialEq for (Tโ‚, Tโ‚‚, โ€ฆ, Tโ‚™)
where T: PartialEq + ?Sized,

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

sourceยง

impl<T> PartialEq for PackedOption<T>

sourceยง

impl<T> PartialEq for EntityList<T>

sourceยง

impl<T> PartialEq for ListPool<T>

1.0.0 ยท sourceยง

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

1.70.0 ยท sourceยง

impl<T> PartialEq for wasmtime_environ::__core::cell::OnceCell<T>
where T: PartialEq,

1.0.0 ยท sourceยง

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

1.19.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.21.0 ยท sourceยง

impl<T> PartialEq for Discriminant<T>

1.20.0 ยท sourceยง

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

1.28.0 ยท 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.25.0 ยท sourceยง

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

sourceยง

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

sourceยง

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

sourceยง

impl<T> PartialEq for Unalign<T>
where T: Unaligned + PartialEq,

1.0.0 ยท sourceยง

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

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 LinkedList<T, A>
where T: PartialEq, A: Allocator,

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 Rc<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, B> PartialEq for Ref<B, [T]>
where B: ByteSlice, T: FromBytes + PartialEq,

sourceยง

impl<T, B> PartialEq for Ref<B, T>
where B: ByteSlice, T: FromBytes + PartialEq,

1.0.0 ยท sourceยง

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

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, A> PartialEq for 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 ยท sourceยง

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

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.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<&[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.17.0 ยท sourceยง

impl<T, U, A> PartialEq<&mut [U]> for VecDeque<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.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<&[U; N]> for VecDeque<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.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<[U; N]> for VecDeque<T, A>
where A: Allocator, T: PartialEq<U>,

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

1.0.0 ยท 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<Y, R> PartialEq for CoroutineState<Y, R>
where Y: PartialEq, R: PartialEq,