Trait wasmtime_environ::__core::prelude::v1::PartialEq

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

Trait for comparisons using the equality operator.

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

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

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

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

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

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

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

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

  • 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 method tests for self and other values to be equal, and is used by ==.

Provided Methods§

source

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

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

Implementors§

source§

impl PartialEq for EngineOrModuleTypeIndex

source§

impl PartialEq for EntityIndex

source§

impl PartialEq for GlobalInit

source§

impl PartialEq for Trap

source§

impl PartialEq for WasmHeapType

source§

impl PartialEq for WasmValType

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 wasmtime_environ::wasmparser::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 OuterAliasKind

source§

impl PartialEq for PrimitiveValType

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

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

source§

impl PartialEq for SocketAddr

source§

impl PartialEq for FpCategory

1.55.0 · source§

impl PartialEq for IntErrorKind

source§

impl PartialEq for SearchStep

source§

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

source§

impl PartialEq for TryReserveErrorKind

1.65.0 · source§

impl PartialEq for BacktraceStatus

source§

impl PartialEq for VarError

source§

impl PartialEq for SeekFrom

source§

impl PartialEq for ErrorKind

source§

impl PartialEq for Shutdown

source§

impl PartialEq for BacktraceStyle

1.12.0 · source§

impl PartialEq for RecvTimeoutError

source§

impl PartialEq for TryRecvError

source§

impl PartialEq for _Unwind_Action

source§

impl PartialEq for _Unwind_Reason_Code

source§

impl PartialEq for DwarfFileType

source§

impl PartialEq for Format

source§

impl PartialEq for gimli::common::SectionId

source§

impl PartialEq for gimli::common::Vendor

source§

impl PartialEq for RunTimeEndian

source§

impl PartialEq for Pointer

source§

impl PartialEq for gimli::read::Error

source§

impl PartialEq for ColumnType

source§

impl PartialEq for Value

source§

impl PartialEq for ValueType

source§

impl PartialEq for gimli::write::cfi::CallFrameInstruction

source§

impl PartialEq for ConvertError

source§

impl PartialEq for Address

source§

impl PartialEq for gimli::write::Error

source§

impl PartialEq for Reference

source§

impl PartialEq for LineString

source§

impl PartialEq for gimli::write::loc::Location

source§

impl PartialEq for gimli::write::range::Range

source§

impl PartialEq for gimli::write::unit::AttributeValue

source§

impl PartialEq for hashbrown::TryReserveError

source§

impl PartialEq for Level

source§

impl PartialEq for LevelFilter

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 RelocationKind

source§

impl PartialEq for SectionFlags

source§

impl PartialEq for SectionKind

source§

impl PartialEq for object::common::SegmentFlags

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 object::read::SymbolSection

source§

impl PartialEq for Mangling

source§

impl PartialEq for StandardSection

source§

impl PartialEq for StandardSegment

source§

impl PartialEq for object::write::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 target_lexicon::targets::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

const: unstable · source§

impl PartialEq for bool

const: unstable · source§

impl PartialEq for char

const: unstable · source§

impl PartialEq for f32

const: unstable · source§

impl PartialEq for f64

const: unstable · source§

impl PartialEq for i8

const: unstable · source§

impl PartialEq for i16

const: unstable · source§

impl PartialEq for i32

const: unstable · source§

impl PartialEq for i64

const: unstable · source§

impl PartialEq for i128

const: unstable · source§

impl PartialEq for isize

source§

impl PartialEq for !

source§

impl PartialEq for str

const: unstable · source§

impl PartialEq for u8

const: unstable · source§

impl PartialEq for u16

const: unstable · source§

impl PartialEq for u32

const: unstable · source§

impl PartialEq for u64

const: unstable · source§

impl PartialEq for u128

source§

impl PartialEq for ()

const: unstable · source§

impl PartialEq for usize

source§

impl PartialEq for 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 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 ModuleInternedTypeIndex

source§

impl PartialEq for OwnedMemoryIndex

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 WasmFuncType

source§

impl PartialEq for WasmRefType

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

source§

impl PartialEq for TypeId

1.27.0 · source§

impl PartialEq for CpuidResult

1.34.0 · source§

impl PartialEq for CharTryFromError

1.9.0 · source§

impl PartialEq for DecodeUtf16Error

1.20.0 · source§

impl PartialEq for ParseCharError

1.59.0 · source§

impl PartialEq for TryFromCharError

source§

impl PartialEq for CStr

1.69.0 · source§

impl PartialEq for FromBytesUntilNulError

1.64.0 · source§

impl PartialEq for FromBytesWithNulError

source§

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

1.33.0 · source§

impl PartialEq for PhantomPinned

source§

impl PartialEq for Assume

source§

impl PartialEq for AddrParseError

source§

impl PartialEq for Ipv4Addr

source§

impl PartialEq for Ipv6Addr

source§

impl PartialEq for SocketAddrV4

source§

impl PartialEq for SocketAddrV6

source§

impl PartialEq for ParseFloatError

source§

impl PartialEq for ParseIntError

1.34.0 · source§

impl PartialEq for TryFromIntError

source§

impl PartialEq for RangeFull

source§

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

source§

impl PartialEq for ParseBoolError

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

source§

impl PartialEq for FromUtf8Error

source§

impl PartialEq for String

source§

impl PartialEq for OsStr

source§

impl PartialEq for OsString

1.1.0 · source§

impl PartialEq for FileType

source§

impl PartialEq for Permissions

source§

impl PartialEq for UCred

source§

impl PartialEq for Path

source§

impl PartialEq for PathBuf

1.7.0 · source§

impl PartialEq for StripPrefixError

source§

impl PartialEq for ExitStatus

source§

impl PartialEq for ExitStatusError

source§

impl PartialEq for Output

1.5.0 · source§

impl PartialEq for WaitTimeoutResult

source§

impl PartialEq for RecvError

1.26.0 · source§

impl PartialEq for AccessError

1.19.0 · source§

impl PartialEq for ThreadId

1.8.0 · source§

impl PartialEq for Instant

1.8.0 · source§

impl PartialEq for SystemTime

source§

impl PartialEq for DebugTypeSignature

source§

impl PartialEq for DwoId

source§

impl PartialEq for gimli::common::Encoding

source§

impl PartialEq for LineEncoding

source§

impl PartialEq for Register

source§

impl PartialEq for DwAccess

source§

impl PartialEq for DwAddr

source§

impl PartialEq for DwAt

source§

impl PartialEq for DwAte

source§

impl PartialEq for DwCc

source§

impl PartialEq for DwCfa

source§

impl PartialEq for DwChildren

source§

impl PartialEq for DwDefaulted

source§

impl PartialEq for DwDs

source§

impl PartialEq for DwDsc

source§

impl PartialEq for DwEhPe

source§

impl PartialEq for DwEnd

source§

impl PartialEq for DwForm

source§

impl PartialEq for DwId

source§

impl PartialEq for DwIdx

source§

impl PartialEq for DwInl

source§

impl PartialEq for DwLang

source§

impl PartialEq for DwLle

source§

impl PartialEq for DwLnct

source§

impl PartialEq for DwLne

source§

impl PartialEq for DwLns

source§

impl PartialEq for DwMacro

source§

impl PartialEq for DwOp

source§

impl PartialEq for DwOrd

source§

impl PartialEq for DwRle

source§

impl PartialEq for DwSect

source§

impl PartialEq for DwSectV2

source§

impl PartialEq for DwTag

source§

impl PartialEq for DwUt

source§

impl PartialEq for DwVirtuality

source§

impl PartialEq for DwVis

source§

impl PartialEq for gimli::endianity::BigEndian

source§

impl PartialEq for gimli::endianity::LittleEndian

source§

impl PartialEq for Abbreviation

source§

impl PartialEq for AttributeSpecification

source§

impl PartialEq for ArangeEntry

source§

impl PartialEq for Augmentation

source§

impl PartialEq for BaseAddresses

source§

impl PartialEq for SectionBaseAddresses

source§

impl PartialEq for UnitIndexSection

source§

impl PartialEq for FileEntryFormat

source§

impl PartialEq for LineRow

source§

impl PartialEq for ReaderOffsetId

source§

impl PartialEq for gimli::read::rnglists::Range

source§

impl PartialEq for StoreOnHeap

source§

impl PartialEq for CieId

source§

impl PartialEq for gimli::write::cfi::CommonInformationEntry

source§

impl PartialEq for gimli::write::cfi::FrameDescriptionEntry

source§

impl PartialEq for FileId

source§

impl PartialEq for DirectoryId

source§

impl PartialEq for FileInfo

source§

impl PartialEq for LocationList

source§

impl PartialEq for LocationListId

source§

impl PartialEq for gimli::write::op::Expression

source§

impl PartialEq for RangeList

source§

impl PartialEq for RangeListId

source§

impl PartialEq for LineStringId

source§

impl PartialEq for gimli::write::str::StringId

source§

impl PartialEq for gimli::write::unit::Attribute

source§

impl PartialEq for UnitEntryId

source§

impl PartialEq for UnitId

source§

impl PartialEq for indexmap::TryReserveError

source§

impl PartialEq for ParseLevelError

source§

impl PartialEq for object::endian::BigEndian

source§

impl PartialEq for object::endian::LittleEndian

source§

impl PartialEq for CompressedFileRange

source§

impl PartialEq for object::read::Error

source§

impl PartialEq for object::read::SectionIndex

source§

impl PartialEq for object::read::SymbolIndex

source§

impl PartialEq for object::write::elf::writer::SectionIndex

source§

impl PartialEq for object::write::elf::writer::SymbolIndex

source§

impl PartialEq for object::write::string::StringId

source§

impl PartialEq for ComdatId

source§

impl PartialEq for object::write::Error

source§

impl PartialEq for object::write::SectionId

source§

impl PartialEq for SymbolId

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

const: unstable · source§

impl PartialEq for f16

const: unstable · source§

impl PartialEq for f128

1.29.0 · source§

impl PartialEq<&str> for OsString

1.16.0 · source§

impl PartialEq<IpAddr> for Ipv4Addr

1.16.0 · source§

impl PartialEq<IpAddr> for Ipv6Addr

source§

impl PartialEq<Level> for LevelFilter

source§

impl PartialEq<LevelFilter> for Level

source§

impl PartialEq<str> for OsStr

source§

impl PartialEq<str> for OsString

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 PartialEq<OsStr> for str

1.8.0 · source§

impl PartialEq<OsStr> for Path

1.8.0 · source§

impl PartialEq<OsStr> for PathBuf

source§

impl PartialEq<OsString> for str

1.8.0 · source§

impl PartialEq<OsString> for Path

1.8.0 · source§

impl PartialEq<OsString> for PathBuf

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.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 Path

source§

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

source§

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

source§

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

source§

impl<'a> PartialEq for Prefix<'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 wasmtime_environ::__core::panic::Location<'a>

source§

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

source§

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

source§

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

source§

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

source§

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

1.8.0 · source§

impl<'a> PartialEq<&'a OsStr> for 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

1.8.0 · source§

impl<'a> PartialEq<Cow<'a, OsStr>> for 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 Path

1.6.0 · source§

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

1.8.0 · source§

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

1.8.0 · source§

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

1.29.0 · source§

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

1.8.0 · source§

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

1.8.0 · source§

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

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

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>

source§

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

source§

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

source§

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

1.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 Path

1.8.0 · source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

1.8.0 · source§

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

1.8.0 · source§

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

1.8.0 · source§

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

1.8.0 · source§

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

1.8.0 · source§

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

source§

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

source§

impl<'bases, Section, R> PartialEq for CieOrFde<'bases, Section, R>
where Section: PartialEq + UnwindSection<R>, R: PartialEq + Reader,

source§

impl<'bases, Section, R> PartialEq for PartialFrameDescriptionEntry<'bases, Section, R>
where Section: PartialEq + UnwindSection<R>, R: PartialEq + Reader, <R as Reader>::Offset: PartialEq, <Section as UnwindSection<R>>::Offset: PartialEq,

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>

source§

impl<'input, Endian> PartialEq for EndianSlice<'input, Endian>
where Endian: PartialEq + Endianity,

source§

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

source§

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

source§

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

source§

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

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>

source§

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

source§

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

1.26.0 · source§

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

source§

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

1.26.0 · source§

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

source§

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

source§

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

source§

impl<K, V, S> PartialEq for 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 + Clone,

source§

impl<Offset> PartialEq for UnitType<Offset>
where Offset: PartialEq + ReaderOffset,

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<R> PartialEq for gimli::read::cfi::CallFrameInstruction<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for CfaRule<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for RegisterRule<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for EvaluationResult<R>
where R: PartialEq + Reader, <R as Reader>::Offset: PartialEq,

source§

impl<R> PartialEq for DebugFrame<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for EhFrame<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for EhFrameHdr<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for LocationListEntry<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for gimli::read::op::Expression<R>
where R: PartialEq + Reader,

source§

impl<R> PartialEq for gimli::read::unit::Attribute<R>
where R: PartialEq + Reader,

source§

impl<R, A> PartialEq for UnwindContext<R, A>

source§

impl<R, Offset> PartialEq for LineInstruction<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for gimli::read::op::Location<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for Operation<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for gimli::read::unit::AttributeValue<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for ArangeHeader<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for gimli::read::cfi::CommonInformationEntry<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for gimli::read::cfi::FrameDescriptionEntry<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for CompleteLineProgram<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for FileEntry<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for IncompleteLineProgram<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for LineProgramHeader<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for Piece<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, Offset> PartialEq for UnitHeader<R, Offset>
where R: PartialEq + Reader<Offset = Offset>, Offset: PartialEq + ReaderOffset,

source§

impl<R, S> PartialEq for UnwindTableRow<R, S>

source§

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

1.17.0 · source§

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

source§

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

1.36.0 · source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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

source§

impl<T> PartialEq for PackedOption<T>

source§

impl<T> PartialEq for EntityList<T>

source§

impl<T> PartialEq for ListPool<T>

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,

source§

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

1.19.0 · source§

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

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,

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 Cursor<T>
where T: PartialEq,

source§

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

1.70.0 · source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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> PartialEq for std::collections::hash::set::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 + Clone,

source§

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

source§

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

source§

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

source§

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

1.17.0 · source§

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

source§

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

1.17.0 · source§

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

source§

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

1.48.0 · source§

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

1.46.0 · source§

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

1.46.0 · source§

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

source§

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

1.48.0 · source§

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

1.17.0 · source§

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

1.17.0 · source§

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

source§

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

1.17.0 · source§

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

1.17.0 · source§

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

source§

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

source§

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

source§

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

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 &mut [T]
where T: PartialEq<U>,

source§

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

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