Trait wasmtime_environ::__core::cmp::PartialEq
1.0.0 · source · pub trait PartialEq<Rhs = Self>where
Rhs: ?Sized,{
// Required method
fn eq(&self, other: &Rhs) -> bool;
// Provided method
fn ne(&self, other: &Rhs) -> bool { ... }
}
Expand description
Trait for comparisons using the equality operator.
Implementing this trait for types provides the ==
and !=
operators for
those types.
x.eq(y)
can also be written x == y
, and x.ne(y)
can be written x != y
.
We use the easier-to-read infix notation in the remainder of this documentation.
This trait allows for comparisons using the equality operator, for types
that do not have a full equivalence relation. For example, in floating point
numbers NaN != NaN
, so floating point types implement PartialEq
but not
Eq
. Formally speaking, when Rhs == Self
, this trait corresponds
to a partial equivalence relation.
Implementations must ensure that eq
and ne
are consistent with each other:
a != b
if and only if!(a == b)
.
The default implementation of ne
provides this consistency and is almost
always sufficient. It should not be overridden without very good reason.
If PartialOrd
or Ord
are also implemented for Self
and Rhs
, their methods must also
be consistent with PartialEq
(see the documentation of those traits for the exact
requirements). It’s easy to accidentally make them disagree by deriving some of the traits and
manually implementing others.
The equality relation ==
must satisfy the following conditions
(for all a
, b
, c
of type A
, B
, C
):
-
Symmetry: if
A: PartialEq<B>
andB: PartialEq<A>
, thena == b
impliesb == a
; and -
Transitivity: if
A: PartialEq<B>
andB: PartialEq<C>
andA: PartialEq<C>
, thena == b
andb == c
impliesa == c
. This must also work for longer chains, such as whenA: PartialEq<B>
,B: PartialEq<C>
,C: PartialEq<D>
, andA: 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 impl
s that allow comparing T == U
. In
other words, if other crates add impl
s 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 impl
s that “stitch together” comparisons of foreign types in ways that violate
transitivity.
Not having such foreign impl
s 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 derive
d on structs, two
instances are equal if all fields are equal, and not equal if any fields
are not equal. When derive
d on enums, 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 BookFormat
s to be compared with Book
s.
A comparison like the one above, which ignores some fields of the struct,
can be dangerous. It can easily lead to an unintended violation of the
requirements for a partial equivalence relation. For example, if we kept
the above implementation of PartialEq<Book>
for BookFormat
and added an
implementation of PartialEq<Book>
for Book
(either via a #[derive]
or
via the manual implementation from the first example) then the result would
violate transitivity:
#[derive(PartialEq)]
enum BookFormat {
Paperback,
Hardback,
Ebook,
}
#[derive(PartialEq)]
struct Book {
isbn: i32,
format: BookFormat,
}
impl PartialEq<BookFormat> for Book {
fn eq(&self, other: &BookFormat) -> bool {
self.format == *other
}
}
impl PartialEq<Book> for BookFormat {
fn eq(&self, other: &Book) -> bool {
*self == other.format
}
}
fn main() {
let b1 = Book { isbn: 1, format: BookFormat::Paperback };
let b2 = Book { isbn: 2, format: BookFormat::Paperback };
assert!(b1 == BookFormat::Paperback);
assert!(BookFormat::Paperback == b2);
// The following should hold by transitivity but doesn't.
assert!(b1 == b2); // <-- PANICS
}
§Examples
let x: u32 = 0;
let y: u32 = 1;
assert_eq!(x == y, false);
assert_eq!(x.eq(&y), false);
Required Methods§
Provided Methods§
Implementors§
impl PartialEq for allocator_api2::stable::raw_vec::TryReserveErrorKind
impl PartialEq for byteorder::BigEndian
impl PartialEq for byteorder::LittleEndian
impl PartialEq for DwarfFileType
impl PartialEq for Format
impl PartialEq for gimli::common::SectionId
impl PartialEq for gimli::common::Vendor
impl PartialEq for RunTimeEndian
impl PartialEq for AbbreviationsCacheStrategy
impl PartialEq for Pointer
impl PartialEq for gimli::read::Error
impl PartialEq for IndexSectionId
impl PartialEq for ColumnType
impl PartialEq for Value
impl PartialEq for ValueType
impl PartialEq for gimli::write::cfi::CallFrameInstruction
impl PartialEq for ConvertError
impl PartialEq for Address
impl PartialEq for gimli::write::Error
impl PartialEq for Reference
impl PartialEq for LineString
impl PartialEq for gimli::write::loc::Location
impl PartialEq for gimli::write::range::Range
impl PartialEq for gimli::write::relocate::RelocationTarget
impl PartialEq for gimli::write::unit::AttributeValue
impl PartialEq for hashbrown::TryReserveError
impl PartialEq for hashbrown::TryReserveError
impl PartialEq for Level
impl PartialEq for LevelFilter
impl PartialEq for AddressSize
impl PartialEq for object::common::Architecture
impl PartialEq for object::common::BinaryFormat
impl PartialEq for ComdatKind
impl PartialEq for FileFlags
impl PartialEq for RelocationEncoding
impl PartialEq for RelocationFlags
impl PartialEq for RelocationKind
impl PartialEq for SectionFlags
impl PartialEq for SectionKind
impl PartialEq for object::common::SegmentFlags
impl PartialEq for SubArchitecture
impl PartialEq for SymbolKind
impl PartialEq for SymbolScope
impl PartialEq for object::endian::Endianness
impl PartialEq for ImportType
impl PartialEq for CompressionFormat
impl PartialEq for FileKind
impl PartialEq for ObjectKind
impl PartialEq for object::read::RelocationTarget
impl PartialEq for object::read::SymbolSection
impl PartialEq for CoffExportStyle
impl PartialEq for Mangling
impl PartialEq for StandardSection
impl PartialEq for StandardSegment
impl PartialEq for object::write::SymbolSection
impl PartialEq for postcard::error::Error
impl PartialEq for Op
impl PartialEq for CDataModel
impl PartialEq for Size
impl PartialEq for ParseError
impl PartialEq for Aarch64Architecture
impl PartialEq for target_lexicon::targets::Architecture
impl PartialEq for ArmArchitecture
impl PartialEq for target_lexicon::targets::BinaryFormat
impl PartialEq for CustomVendor
impl PartialEq for Environment
impl PartialEq for Mips32Architecture
impl PartialEq for Mips64Architecture
impl PartialEq for OperatingSystem
impl PartialEq for Riscv32Architecture
impl PartialEq for Riscv64Architecture
impl PartialEq for target_lexicon::targets::Vendor
impl PartialEq for X86_32Architecture
impl PartialEq for CallingConvention
impl PartialEq for target_lexicon::triple::Endianness
impl PartialEq for PointerWidth
impl PartialEq for Color
impl PartialEq for ColorChoice
impl PartialEq for wasm_encoder::component::aliases::ComponentOuterAliasKind
impl PartialEq for wasm_encoder::component::canonicals::CanonicalOption
impl PartialEq for ComponentSectionId
impl PartialEq for ComponentExportKind
impl PartialEq for wasm_encoder::component::imports::ComponentTypeRef
impl PartialEq for wasm_encoder::component::imports::TypeBounds
impl PartialEq for ModuleArg
impl PartialEq for wasm_encoder::component::types::ComponentValType
impl PartialEq for wasm_encoder::component::types::PrimitiveValType
impl PartialEq for wasm_encoder::core::SectionId
impl PartialEq for ExportKind
impl PartialEq for EntityType
impl PartialEq for wasm_encoder::core::tags::TagKind
impl PartialEq for wasm_encoder::core::types::AbstractHeapType
impl PartialEq for wasm_encoder::core::types::HeapType
impl PartialEq for wasm_encoder::core::types::StorageType
impl PartialEq for wasm_encoder::core::types::ValType
impl PartialEq for wasmparser::parser::Encoding
impl PartialEq for wasmparser::readers::component::aliases::ComponentOuterAliasKind
impl PartialEq for CanonicalFunction
impl PartialEq for wasmparser::readers::component::canonicals::CanonicalOption
impl PartialEq for ComponentExternalKind
impl PartialEq for wasmparser::readers::component::imports::ComponentTypeRef
impl PartialEq for wasmparser::readers::component::imports::TypeBounds
impl PartialEq for InstantiationArgKind
impl PartialEq for wasmparser::readers::component::types::ComponentValType
impl PartialEq for OuterAliasKind
impl PartialEq for wasmparser::readers::component::types::PrimitiveValType
impl PartialEq for ExternalKind
impl PartialEq for TypeRef
impl PartialEq for ComdatSymbolKind
impl PartialEq for BlockType
impl PartialEq for Catch
impl PartialEq for FrameKind
impl PartialEq for Handle
impl PartialEq for wasmparser::readers::core::operators::Ordering
impl PartialEq for RelocAddendKind
impl PartialEq for RelocationType
impl PartialEq for wasmparser::readers::core::types::AbstractHeapType
impl PartialEq for CompositeInnerType
impl PartialEq for wasmparser::readers::core::types::HeapType
impl PartialEq for wasmparser::readers::core::types::StorageType
impl PartialEq for wasmparser::readers::core::types::TagKind
impl PartialEq for UnpackedIndex
impl PartialEq for wasmparser::readers::core::types::ValType
impl PartialEq for ComponentNameKind<'_>
impl PartialEq for AnyTypeId
impl PartialEq for ComponentAnyTypeId
impl PartialEq for ComponentCoreTypeId
impl PartialEq for DiscriminantSize
impl PartialEq for wasmtime_environ::component::dfg::CoreDef
impl PartialEq for Trampoline
impl PartialEq for wasmtime_environ::component::CoreDef
impl PartialEq for FixedEncoding
impl PartialEq for FlatType
impl PartialEq for InterfaceType
impl PartialEq for StringEncoding
impl PartialEq for Transcode
impl PartialEq for ConstOp
impl PartialEq for EngineOrModuleTypeIndex
impl PartialEq for EntityIndex
impl PartialEq for IndexType
impl PartialEq for wasmtime_environ::RelocationTarget
impl PartialEq for Trap
impl PartialEq for VMGcKind
impl PartialEq for WasmCompositeType
impl PartialEq for WasmHeapTopType
impl PartialEq for WasmHeapType
impl PartialEq for WasmStorageType
impl PartialEq for WasmValType
impl PartialEq for LibCall
impl PartialEq for AsciiChar
impl PartialEq for Infallible
impl PartialEq for wasmtime_environ::__core::fmt::Alignment
impl PartialEq for IpAddr
impl PartialEq for Ipv6MulticastScope
impl PartialEq for SocketAddr
impl PartialEq for FpCategory
impl PartialEq for IntErrorKind
impl PartialEq for SearchStep
impl PartialEq for wasmtime_environ::__core::sync::atomic::Ordering
impl PartialEq for wasmtime_environ::__core::cmp::Ordering
impl PartialEq for alloc::collections::TryReserveErrorKind
impl PartialEq for BacktraceStatus
impl PartialEq for VarError
impl PartialEq for SeekFrom
impl PartialEq for ErrorKind
impl PartialEq for Shutdown
impl PartialEq for BacktraceStyle
impl PartialEq for RecvTimeoutError
impl PartialEq for TryRecvError
impl PartialEq for _Unwind_Action
impl PartialEq for _Unwind_Reason_Code
impl PartialEq for bool
impl PartialEq for char
impl PartialEq for f16
impl PartialEq for f32
impl PartialEq for f64
impl PartialEq for f128
impl PartialEq for i8
impl PartialEq for i16
impl PartialEq for i32
impl PartialEq for i64
impl PartialEq for i128
impl PartialEq for isize
impl PartialEq for !
impl PartialEq for str
impl PartialEq for u8
impl PartialEq for u16
impl PartialEq for u32
impl PartialEq for u64
impl PartialEq for u128
impl PartialEq for ()
impl PartialEq for usize
impl PartialEq for allocator_api2::stable::alloc::AllocError
impl PartialEq for allocator_api2::stable::raw_vec::TryReserveError
impl PartialEq for CompoundBitSet
impl PartialEq for DebugTypeSignature
impl PartialEq for DwoId
impl PartialEq for gimli::common::Encoding
impl PartialEq for LineEncoding
impl PartialEq for Register
impl PartialEq for DwAccess
impl PartialEq for DwAddr
impl PartialEq for DwAt
impl PartialEq for DwAte
impl PartialEq for DwCc
impl PartialEq for DwCfa
impl PartialEq for DwChildren
impl PartialEq for DwDefaulted
impl PartialEq for DwDs
impl PartialEq for DwDsc
impl PartialEq for DwEhPe
impl PartialEq for DwEnd
impl PartialEq for DwForm
impl PartialEq for DwId
impl PartialEq for DwIdx
impl PartialEq for DwInl
impl PartialEq for DwLang
impl PartialEq for DwLle
impl PartialEq for DwLnct
impl PartialEq for DwLne
impl PartialEq for DwLns
impl PartialEq for DwMacro
impl PartialEq for DwOp
impl PartialEq for DwOrd
impl PartialEq for DwRle
impl PartialEq for DwSect
impl PartialEq for DwSectV2
impl PartialEq for DwTag
impl PartialEq for DwUt
impl PartialEq for DwVirtuality
impl PartialEq for DwVis
impl PartialEq for gimli::endianity::BigEndian
impl PartialEq for gimli::endianity::LittleEndian
impl PartialEq for Abbreviation
impl PartialEq for AttributeSpecification
impl PartialEq for ArangeEntry
impl PartialEq for Augmentation
impl PartialEq for BaseAddresses
impl PartialEq for SectionBaseAddresses
impl PartialEq for UnitIndexSection
impl PartialEq for FileEntryFormat
impl PartialEq for LineRow
impl PartialEq for ReaderOffsetId
impl PartialEq for gimli::read::rnglists::Range
impl PartialEq for StoreOnHeap
impl PartialEq for CieId
impl PartialEq for gimli::write::cfi::CommonInformationEntry
impl PartialEq for gimli::write::cfi::FrameDescriptionEntry
impl PartialEq for FileId
impl PartialEq for DirectoryId
impl PartialEq for FileInfo
impl PartialEq for LocationList
impl PartialEq for LocationListId
impl PartialEq for gimli::write::op::Expression
impl PartialEq for RangeList
impl PartialEq for RangeListId
impl PartialEq for Relocation
impl PartialEq for LineStringId
impl PartialEq for gimli::write::str::StringId
impl PartialEq for gimli::write::unit::Attribute
impl PartialEq for UnitEntryId
impl PartialEq for UnitId
impl PartialEq for indexmap::TryReserveError
impl PartialEq for ParseLevelError
impl PartialEq for object::endian::BigEndian
impl PartialEq for object::endian::LittleEndian
impl PartialEq for Guid
impl PartialEq for CompressedFileRange
impl PartialEq for object::read::Error
impl PartialEq for object::read::SectionIndex
impl PartialEq for object::read::SymbolIndex
impl PartialEq for Class
impl PartialEq for object::write::elf::writer::SectionIndex
impl PartialEq for object::write::elf::writer::SymbolIndex
impl PartialEq for object::write::string::StringId
impl PartialEq for ComdatId
impl PartialEq for object::write::Error
impl PartialEq for object::write::SectionId
impl PartialEq for SymbolId
impl PartialEq for BuildMetadata
impl PartialEq for Comparator
impl PartialEq for Prerelease
impl PartialEq for Version
impl PartialEq for VersionReq
impl PartialEq for IgnoredAny
impl PartialEq for serde::de::value::Error
impl PartialEq for DefaultToHost
impl PartialEq for DefaultToUnknown
impl PartialEq for Triple
impl PartialEq for ColorSpec
impl PartialEq for ParseColorError
impl PartialEq for Function
impl PartialEq for wasm_encoder::core::globals::GlobalType
impl PartialEq for wasm_encoder::core::memories::MemoryType
impl PartialEq for wasm_encoder::core::tables::TableType
impl PartialEq for wasm_encoder::core::tags::TagType
impl PartialEq for wasm_encoder::core::types::ArrayType
impl PartialEq for wasm_encoder::core::types::ContType
impl PartialEq for wasm_encoder::core::types::FieldType
impl PartialEq for wasm_encoder::core::types::FuncType
impl PartialEq for wasm_encoder::core::types::RefType
impl PartialEq for wasm_encoder::core::types::StructType
impl PartialEq for WasmFeatures
impl PartialEq for wasmparser::readers::core::init::ConstExpr<'_>
impl PartialEq for wasmparser::readers::core::linking::SegmentFlags
impl PartialEq for wasmparser::readers::core::linking::SymbolFlags
impl PartialEq for BrTable<'_>
impl PartialEq for Ieee32
impl PartialEq for Ieee64
impl PartialEq for MemArg
impl PartialEq for ResumeTable
impl PartialEq for TryTable
impl PartialEq for V128
impl PartialEq for RelocationEntry
impl PartialEq for wasmparser::readers::core::types::ArrayType
impl PartialEq for CompositeType
impl PartialEq for wasmparser::readers::core::types::ContType
impl PartialEq for wasmparser::readers::core::types::FieldType
impl PartialEq for wasmparser::readers::core::types::FuncType
impl PartialEq for wasmparser::readers::core::types::GlobalType
impl PartialEq for wasmparser::readers::core::types::MemoryType
impl PartialEq for PackedIndex
impl PartialEq for RecGroup
impl PartialEq for wasmparser::readers::core::types::RefType
impl PartialEq for wasmparser::readers::core::types::StructType
impl PartialEq for SubType
impl PartialEq for wasmparser::readers::core::types::TableType
impl PartialEq for wasmparser::readers::core::types::TagType
impl PartialEq for ComponentName
impl PartialEq for KebabStr
impl PartialEq for KebabString
impl PartialEq for ValidatorId
impl PartialEq for AliasableResourceId
impl PartialEq for ComponentCoreInstanceTypeId
impl PartialEq for ComponentCoreModuleTypeId
impl PartialEq for ComponentDefinedTypeId
impl PartialEq for ComponentFuncTypeId
impl PartialEq for ComponentInstanceTypeId
impl PartialEq for ComponentTypeId
impl PartialEq for ComponentValueTypeId
impl PartialEq for CoreTypeId
impl PartialEq for RecGroupId
impl PartialEq for ResourceId
impl PartialEq for AdapterId
impl PartialEq for AdapterModuleId
impl PartialEq for CanonicalOptions
impl PartialEq for InstanceId
impl PartialEq for MemoryId
impl PartialEq for PostReturnId
impl PartialEq for ReallocId
impl PartialEq for Adapter
impl PartialEq for AdapterOptions
impl PartialEq for CanonicalAbiInfo
impl PartialEq for ComponentFuncIndex
impl PartialEq for ComponentIndex
impl PartialEq for ComponentInstanceIndex
impl PartialEq for ComponentTypeIndex
impl PartialEq for ComponentUpvarIndex
impl PartialEq for DefinedResourceIndex
impl PartialEq for ExportIndex
impl PartialEq for ImportIndex
impl PartialEq for LoweredIndex
impl PartialEq for ModuleIndex
impl PartialEq for ModuleInstanceIndex
impl PartialEq for ModuleUpvarIndex
impl PartialEq for RecordField
impl PartialEq for ResourceIndex
impl PartialEq for RuntimeComponentInstanceIndex
impl PartialEq for RuntimeImportIndex
impl PartialEq for RuntimeInstanceIndex
impl PartialEq for RuntimeMemoryIndex
impl PartialEq for RuntimePostReturnIndex
impl PartialEq for RuntimeReallocIndex
impl PartialEq for StaticComponentIndex
impl PartialEq for TrampolineIndex
impl PartialEq for TypeComponentIndex
impl PartialEq for TypeComponentInstanceIndex
impl PartialEq for TypeEnum
impl PartialEq for TypeEnumIndex
impl PartialEq for TypeFlags
impl PartialEq for TypeFlagsIndex
impl PartialEq for TypeFunc
impl PartialEq for TypeFuncIndex
impl PartialEq for TypeList
impl PartialEq for TypeListIndex
impl PartialEq for TypeModuleIndex
impl PartialEq for TypeOption
impl PartialEq for TypeOptionIndex
impl PartialEq for TypeRecord
impl PartialEq for TypeRecordIndex
impl PartialEq for TypeResourceTable
impl PartialEq for TypeResourceTableIndex
impl PartialEq for TypeResult
impl PartialEq for TypeResultIndex
impl PartialEq for TypeTuple
impl PartialEq for TypeTupleIndex
impl PartialEq for TypeVariant
impl PartialEq for TypeVariantIndex
impl PartialEq for VariantInfo
impl PartialEq for String
impl PartialEq for BuiltinFunctionIndex
impl PartialEq for wasmtime_environ::ConstExpr
impl PartialEq for DataIndex
impl PartialEq for DefinedFuncIndex
impl PartialEq for DefinedGlobalIndex
impl PartialEq for DefinedMemoryIndex
impl PartialEq for DefinedTableIndex
impl PartialEq for ElemIndex
impl PartialEq for EngineInternedRecGroupIndex
impl PartialEq for FilePos
impl PartialEq for FuncIndex
impl PartialEq for FuncRefIndex
impl PartialEq for Global
impl PartialEq for GlobalIndex
impl PartialEq for InstructionAddressMap
impl PartialEq for Limits
impl PartialEq for Memory
impl PartialEq for MemoryIndex
impl PartialEq for ModuleInternedRecGroupIndex
impl PartialEq for ModuleInternedTypeIndex
impl PartialEq for OwnedMemoryIndex
impl PartialEq for RecGroupRelativeTypeIndex
impl PartialEq for StaticModuleIndex
impl PartialEq for Table
impl PartialEq for TableIndex
impl PartialEq for Tag
impl PartialEq for TagIndex
impl PartialEq for TrapInformation
impl PartialEq for TypeIndex
impl PartialEq for WasmArrayType
impl PartialEq for WasmFieldType
impl PartialEq for WasmFuncType
impl PartialEq for WasmRecGroup
impl PartialEq for WasmRefType
impl PartialEq for WasmStructType
impl PartialEq for WasmSubType
impl PartialEq for wasmtime_environ::__core::alloc::AllocError
impl PartialEq for Layout
impl PartialEq for LayoutError
impl PartialEq for TypeId
impl PartialEq for CpuidResult
impl PartialEq for CharTryFromError
impl PartialEq for DecodeUtf16Error
impl PartialEq for ParseCharError
impl PartialEq for TryFromCharError
impl PartialEq for CStr
impl PartialEq for FromBytesUntilNulError
impl PartialEq for FromBytesWithNulError
impl PartialEq for wasmtime_environ::__core::fmt::Error
impl PartialEq for PhantomPinned
impl PartialEq for Assume
impl PartialEq for AddrParseError
impl PartialEq for Ipv4Addr
impl PartialEq for Ipv6Addr
impl PartialEq for SocketAddrV4
impl PartialEq for SocketAddrV6
impl PartialEq for ParseFloatError
impl PartialEq for ParseIntError
impl PartialEq for TryFromIntError
impl PartialEq for wasmtime_environ::__core::ptr::Alignment
impl PartialEq for RangeFull
impl PartialEq for ParseBoolError
impl PartialEq for Utf8Error
impl PartialEq for RawWaker
impl PartialEq for RawWakerVTable
impl PartialEq for Duration
impl PartialEq for TryFromFloatSecsError
impl PartialEq for UnorderedKeyError
impl PartialEq for alloc::collections::TryReserveError
impl PartialEq for CString
impl PartialEq for FromVecWithNulError
impl PartialEq for IntoStringError
impl PartialEq for NulError
impl PartialEq for FromUtf8Error
impl PartialEq for OsStr
impl PartialEq for OsString
impl PartialEq for FileType
impl PartialEq for Permissions
impl PartialEq for UCred
impl PartialEq for Path
impl PartialEq for PathBuf
impl PartialEq for StripPrefixError
impl PartialEq for ExitStatus
impl PartialEq for ExitStatusError
impl PartialEq for Output
impl PartialEq for WaitTimeoutResult
impl PartialEq for RecvError
impl PartialEq for AccessError
impl PartialEq for ThreadId
impl PartialEq for Instant
impl PartialEq for SystemTime
impl PartialEq<&str> for OsString
impl PartialEq<Level> for LevelFilter
impl PartialEq<LevelFilter> for Level
impl PartialEq<IpAddr> for Ipv4Addr
impl PartialEq<IpAddr> for Ipv6Addr
impl PartialEq<str> for OsStr
impl PartialEq<str> for OsString
impl PartialEq<KebabStr> for KebabString
impl PartialEq<KebabString> for KebabStr
impl PartialEq<Ipv4Addr> for IpAddr
impl PartialEq<Ipv6Addr> for IpAddr
impl PartialEq<OsStr> for str
impl PartialEq<OsStr> for Path
impl PartialEq<OsStr> for PathBuf
impl PartialEq<OsString> for str
impl PartialEq<OsString> for Path
impl PartialEq<OsString> for PathBuf
impl PartialEq<Path> for OsStr
impl PartialEq<Path> for OsString
impl PartialEq<Path> for PathBuf
impl PartialEq<PathBuf> for OsStr
impl PartialEq<PathBuf> for OsString
impl PartialEq<PathBuf> for Path
impl<'a> PartialEq for Unexpected<'a>
impl<'a> PartialEq for ComponentAlias<'a>
impl<'a> PartialEq for ComponentInstance<'a>
impl<'a> PartialEq for Instance<'a>
impl<'a> PartialEq for ComponentDefinedType<'a>
impl<'a> PartialEq for ComponentFuncResult<'a>
impl<'a> PartialEq for ComponentType<'a>
impl<'a> PartialEq for ComponentTypeDeclaration<'a>
impl<'a> PartialEq for CoreType<'a>
impl<'a> PartialEq for InstanceTypeDeclaration<'a>
impl<'a> PartialEq for ModuleTypeDeclaration<'a>
impl<'a> PartialEq for Operator<'a>
impl<'a> PartialEq for FlagValue<'a>
impl<'a> PartialEq for Component<'a>
impl<'a> PartialEq for Prefix<'a>
impl<'a> PartialEq for Metadata<'a>
impl<'a> PartialEq for MetadataBuilder<'a>
impl<'a> PartialEq for ComponentExport<'a>
impl<'a> PartialEq for ComponentExportName<'a>
impl<'a> PartialEq for ComponentImport<'a>
impl<'a> PartialEq for ComponentImportName<'a>
impl<'a> PartialEq for ComponentInstantiationArg<'a>
impl<'a> PartialEq for InstantiationArg<'a>
impl<'a> PartialEq for ComponentFuncType<'a>
impl<'a> PartialEq for VariantCase<'a>
impl<'a> PartialEq for wasmparser::readers::core::exports::Export<'a>
impl<'a> PartialEq for wasmparser::readers::core::imports::Import<'a>
impl<'a> PartialEq for DependencyName<'a>
impl<'a> PartialEq for HashName<'a>
impl<'a> PartialEq for InterfaceName<'a>
impl<'a> PartialEq for ResourceFunc<'a>
impl<'a> PartialEq for UrlName<'a>
impl<'a> PartialEq for wasmtime_environ::__core::panic::Location<'a>
impl<'a> PartialEq for Utf8Chunk<'a>
impl<'a> PartialEq for Components<'a>
impl<'a> PartialEq for PrefixComponent<'a>
impl<'a> PartialEq<&'a OsStr> for Path
impl<'a> PartialEq<&'a OsStr> for PathBuf
impl<'a> PartialEq<&'a Path> for OsStr
impl<'a> PartialEq<&'a Path> for OsString
impl<'a> PartialEq<&'a Path> for PathBuf
impl<'a> PartialEq<Cow<'a, OsStr>> for Path
impl<'a> PartialEq<Cow<'a, OsStr>> for PathBuf
impl<'a> PartialEq<Cow<'a, Path>> for OsStr
impl<'a> PartialEq<Cow<'a, Path>> for OsString
impl<'a> PartialEq<Cow<'a, Path>> for Path
impl<'a> PartialEq<Cow<'a, Path>> for PathBuf
impl<'a> PartialEq<OsStr> for &'a Path
impl<'a> PartialEq<OsStr> for Cow<'a, Path>
impl<'a> PartialEq<OsString> for &'a str
impl<'a> PartialEq<OsString> for &'a Path
impl<'a> PartialEq<OsString> for Cow<'a, Path>
impl<'a> PartialEq<Path> for &'a OsStr
impl<'a> PartialEq<Path> for Cow<'a, OsStr>
impl<'a> PartialEq<Path> for Cow<'a, Path>
impl<'a> PartialEq<PathBuf> for &'a OsStr
impl<'a> PartialEq<PathBuf> for &'a Path
impl<'a> PartialEq<PathBuf> for Cow<'a, OsStr>
impl<'a> PartialEq<PathBuf> for Cow<'a, Path>
impl<'a, 'b> PartialEq<&'a str> for String
impl<'a, 'b> PartialEq<&'a OsStr> for OsString
impl<'a, 'b> PartialEq<&'a Path> for Cow<'b, OsStr>
impl<'a, 'b> PartialEq<&'b str> for Cow<'a, str>
impl<'a, 'b> PartialEq<&'b OsStr> for Cow<'a, OsStr>
impl<'a, 'b> PartialEq<&'b OsStr> for Cow<'a, Path>
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, Path>
impl<'a, 'b> PartialEq<Cow<'a, str>> for &'b str
impl<'a, 'b> PartialEq<Cow<'a, str>> for str
impl<'a, 'b> PartialEq<Cow<'a, str>> for String
impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for &'b OsStr
impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for OsStr
impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for OsString
impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b OsStr
impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b Path
impl<'a, 'b> PartialEq<Cow<'b, OsStr>> for &'a Path
impl<'a, 'b> PartialEq<str> for Cow<'a, str>
impl<'a, 'b> PartialEq<str> for String
impl<'a, 'b> PartialEq<String> for &'a str
impl<'a, 'b> PartialEq<String> for Cow<'a, str>
impl<'a, 'b> PartialEq<String> for str
impl<'a, 'b> PartialEq<OsStr> for Cow<'a, OsStr>
impl<'a, 'b> PartialEq<OsStr> for OsString
impl<'a, 'b> PartialEq<OsString> for &'a OsStr
impl<'a, 'b> PartialEq<OsString> for Cow<'a, OsStr>
impl<'a, 'b> PartialEq<OsString> for OsStr
impl<'a, 'b, B, C> PartialEq<Cow<'b, C>> for Cow<'a, B>
impl<'bases, Section, R> PartialEq for CieOrFde<'bases, Section, R>
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,
impl<'data> PartialEq for ImportName<'data>
impl<'data> PartialEq for CodeView<'data>
impl<'data> PartialEq for CompressedData<'data>
impl<'data> PartialEq for object::read::Export<'data>
impl<'data> PartialEq for object::read::Import<'data>
impl<'data> PartialEq for ObjectMapEntry<'data>
impl<'data> PartialEq for ObjectMapFile<'data>
impl<'data> PartialEq for SymbolMapName<'data>
impl<'data> PartialEq for Bytes<'data>
impl<'input, Endian> PartialEq for EndianSlice<'input, Endian>
impl<A, B> PartialEq<&B> for &A
impl<A, B> PartialEq<&B> for &mut A
impl<A, B> PartialEq<&mut B> for &A
impl<A, B> PartialEq<&mut B> for &mut A
impl<A, B> PartialEq<SmallVec<B>> for SmallVec<A>
impl<B, C> PartialEq for ControlFlow<B, C>
impl<Dyn> PartialEq for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<E> PartialEq for object::endian::aligned::I16<E>
impl<E> PartialEq for object::endian::aligned::I32<E>
impl<E> PartialEq for object::endian::aligned::I64<E>
impl<E> PartialEq for object::endian::aligned::U16<E>
impl<E> PartialEq for object::endian::aligned::U32<E>
impl<E> PartialEq for object::endian::aligned::U64<E>
impl<E> PartialEq for I16Bytes<E>
impl<E> PartialEq for I32Bytes<E>
impl<E> PartialEq for I64Bytes<E>
impl<E> PartialEq for U16Bytes<E>
impl<E> PartialEq for U32Bytes<E>
impl<E> PartialEq for U64Bytes<E>
impl<F> PartialEq for Fwhere
F: FnPtr,
impl<H> PartialEq for BuildHasherDefault<H>
impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::Range<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::RangeFrom<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for wasmtime_environ::__core::range::legacy::RangeInclusive<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for wasmtime_environ::__core::range::Range<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for wasmtime_environ::__core::range::RangeFrom<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for wasmtime_environ::__core::range::RangeInclusive<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for RangeTo<Idx>where
Idx: PartialEq,
impl<Idx> PartialEq for RangeToInclusive<Idx>where
Idx: PartialEq,
impl<K, V1, S1, V2, S2> PartialEq<IndexMap<K, V2, S2>> for indexmap::map::IndexMap<K, V1, S1>
impl<K, V> PartialEq for indexmap::map::slice::Slice<K, V>
impl<K, V> PartialEq for Map<K, V>
impl<K, V> PartialEq for wasmtime_environ::prelude::IndexMap<K, V>
impl<K, V> PartialEq for PrimaryMap<K, V>
impl<K, V> PartialEq for SecondaryMap<K, V>
impl<K, V, A> PartialEq for BTreeMap<K, V, A>
impl<K, V, S> PartialEq for std::collections::hash::map::HashMap<K, V, S>
impl<K, V, S, A> PartialEq for hashbrown::map::HashMap<K, V, S, A>
impl<K, V, S, A> PartialEq for hashbrown::map::HashMap<K, V, S, A>
impl<O> PartialEq for F32<O>where
O: PartialEq,
impl<O> PartialEq for F64<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::I16<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::I32<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::I64<O>where
O: PartialEq,
impl<O> PartialEq for I128<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::U16<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::U32<O>where
O: PartialEq,
impl<O> PartialEq for zerocopy::byteorder::U64<O>where
O: PartialEq,
impl<O> PartialEq for U128<O>where
O: PartialEq,
impl<O> PartialEq<F32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> PartialEq<F64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> PartialEq<I16<O>> for [u8; 2]where
O: ByteOrder,
impl<O> PartialEq<I32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> PartialEq<I64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> PartialEq<I128<O>> for [u8; 16]where
O: ByteOrder,
impl<O> PartialEq<U16<O>> for [u8; 2]where
O: ByteOrder,
impl<O> PartialEq<U32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> PartialEq<U64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> PartialEq<U128<O>> for [u8; 16]where
O: ByteOrder,
impl<O> PartialEq<[u8; 2]> for zerocopy::byteorder::I16<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 2]> for zerocopy::byteorder::U16<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 4]> for F32<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 4]> for zerocopy::byteorder::I32<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 4]> for zerocopy::byteorder::U32<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 8]> for F64<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 8]> for zerocopy::byteorder::I64<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 8]> for zerocopy::byteorder::U64<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 16]> for I128<O>where
O: ByteOrder,
impl<O> PartialEq<[u8; 16]> for U128<O>where
O: ByteOrder,
impl<Offset> PartialEq for UnitType<Offset>where
Offset: PartialEq + ReaderOffset,
impl<Ptr, Q> PartialEq<Pin<Q>> for Pin<Ptr>
impl<R> PartialEq for EvaluationResult<R>
impl<R> PartialEq for DebugFrame<R>
impl<R> PartialEq for EhFrame<R>
impl<R> PartialEq for EhFrameHdr<R>
impl<R> PartialEq for LocationListEntry<R>
impl<R> PartialEq for gimli::read::op::Expression<R>
impl<R> PartialEq for gimli::read::unit::Attribute<R>
impl<R, Offset> PartialEq for LineInstruction<R, Offset>
impl<R, Offset> PartialEq for gimli::read::op::Location<R, Offset>
impl<R, Offset> PartialEq for Operation<R, Offset>
impl<R, Offset> PartialEq for gimli::read::unit::AttributeValue<R, Offset>
impl<R, Offset> PartialEq for ArangeHeader<R, Offset>
impl<R, Offset> PartialEq for gimli::read::cfi::CommonInformationEntry<R, Offset>
impl<R, Offset> PartialEq for gimli::read::cfi::FrameDescriptionEntry<R, Offset>
impl<R, Offset> PartialEq for CompleteLineProgram<R, Offset>
impl<R, Offset> PartialEq for FileEntry<R, Offset>
impl<R, Offset> PartialEq for IncompleteLineProgram<R, Offset>
impl<R, Offset> PartialEq for LineProgramHeader<R, Offset>
impl<R, Offset> PartialEq for Piece<R, Offset>
impl<R, Offset> PartialEq for UnitHeader<R, Offset>
impl<Section, Symbol> PartialEq for object::common::SymbolFlags<Section, Symbol>
impl<T> PartialEq for UnitSectionOffset<T>where
T: PartialEq,
impl<T> PartialEq for gimli::read::cfi::CallFrameInstruction<T>where
T: PartialEq + ReaderOffset,
impl<T> PartialEq for CfaRule<T>where
T: PartialEq + ReaderOffset,
impl<T> PartialEq for RegisterRule<T>where
T: PartialEq + ReaderOffset,
impl<T> PartialEq for DieReference<T>where
T: PartialEq,
impl<T> PartialEq for Option<T>where
T: PartialEq,
impl<T> PartialEq for Bound<T>where
T: PartialEq,
impl<T> PartialEq for Poll<T>where
T: PartialEq,
impl<T> PartialEq for TrySendError<T>where
T: PartialEq,
impl<T> PartialEq for *const Twhere
T: ?Sized,
impl<T> PartialEq for *mut Twhere
T: ?Sized,
impl<T> PartialEq for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.