Trait wasmtime_environ::__core::marker::StructuralPartialEq

source ยท
pub trait StructuralPartialEq { }
๐Ÿ”ฌThis is a nightly-only experimental API. (structural_match)
Expand description

Required trait for constants used in pattern matches.

Any type that derives PartialEq automatically implements this trait, regardless of whether its type-parameters implement PartialEq.

If a const item contains some type that does not implement this trait, then that type either (1.) does not implement PartialEq (which means the constant will not provide that comparison method, which code generation assumes is available), or (2.) it implements its own version of PartialEq (which we assume does not conform to a structural-equality comparison).

In either of the two scenarios above, we reject usage of such a constant in a pattern match.

See also the structural match RFC, and issue 63438 which motivated migrating from an attribute-based design to this trait.

Implementorsยง

sourceยง

impl StructuralPartialEq for ConstOp

sourceยง

impl StructuralPartialEq for EngineOrModuleTypeIndex

sourceยง

impl StructuralPartialEq for EntityIndex

sourceยง

impl StructuralPartialEq for Trap

sourceยง

impl StructuralPartialEq for VMGcKind

sourceยง

impl StructuralPartialEq for WasmCompositeType

sourceยง

impl StructuralPartialEq for WasmHeapTopType

sourceยง

impl StructuralPartialEq for WasmHeapType

sourceยง

impl StructuralPartialEq for WasmStorageType

sourceยง

impl StructuralPartialEq for WasmValType

sourceยง

impl StructuralPartialEq for LibCall

sourceยง

impl StructuralPartialEq for BlockType

sourceยง

impl StructuralPartialEq for CanonicalOption

sourceยง

impl StructuralPartialEq for ComdatSymbolKind

sourceยง

impl StructuralPartialEq for ComponentExternalKind

sourceยง

impl StructuralPartialEq for ComponentOuterAliasKind

sourceยง

impl StructuralPartialEq for ComponentTypeRef

sourceยง

impl StructuralPartialEq for ComponentValType

sourceยง

impl StructuralPartialEq for CompositeType

sourceยง

impl StructuralPartialEq for Encoding

sourceยง

impl StructuralPartialEq for ExternalKind

sourceยง

impl StructuralPartialEq for FrameKind

sourceยง

impl StructuralPartialEq for HeapType

sourceยง

impl StructuralPartialEq for InstantiationArgKind

sourceยง

impl StructuralPartialEq for wasmtime_environ::wasmparser::Ordering

sourceยง

impl StructuralPartialEq for OuterAliasKind

sourceยง

impl StructuralPartialEq for PrimitiveValType

sourceยง

impl StructuralPartialEq for RelocAddendKind

sourceยง

impl StructuralPartialEq for RelocationType

sourceยง

impl StructuralPartialEq for StorageType

sourceยง

impl StructuralPartialEq for TypeBounds

sourceยง

impl StructuralPartialEq for UnpackedIndex

sourceยง

impl StructuralPartialEq for ValType

sourceยง

impl StructuralPartialEq for AnyTypeId

sourceยง

impl StructuralPartialEq for ComponentAnyTypeId

sourceยง

impl StructuralPartialEq for ComponentCoreTypeId

sourceยง

impl StructuralPartialEq for AsciiChar

1.0.0 ยท sourceยง

impl StructuralPartialEq for wasmtime_environ::__core::cmp::Ordering

1.28.0 ยท sourceยง

impl StructuralPartialEq for wasmtime_environ::__core::fmt::Alignment

1.7.0 ยท sourceยง

impl StructuralPartialEq for IpAddr

sourceยง

impl StructuralPartialEq for Ipv6MulticastScope

1.0.0 ยท sourceยง

impl StructuralPartialEq for SocketAddr

1.0.0 ยท sourceยง

impl StructuralPartialEq for FpCategory

1.55.0 ยท sourceยง

impl StructuralPartialEq for IntErrorKind

sourceยง

impl StructuralPartialEq for SearchStep

1.0.0 ยท sourceยง

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

sourceยง

impl StructuralPartialEq for TryReserveErrorKind

sourceยง

impl StructuralPartialEq for hashbrown::TryReserveError

sourceยง

impl StructuralPartialEq for AddressSize

sourceยง

impl StructuralPartialEq for object::common::Architecture

sourceยง

impl StructuralPartialEq for object::common::BinaryFormat

sourceยง

impl StructuralPartialEq for ComdatKind

sourceยง

impl StructuralPartialEq for FileFlags

sourceยง

impl StructuralPartialEq for RelocationEncoding

sourceยง

impl StructuralPartialEq for RelocationFlags

sourceยง

impl StructuralPartialEq for RelocationKind

sourceยง

impl StructuralPartialEq for SectionFlags

sourceยง

impl StructuralPartialEq for SectionKind

sourceยง

impl StructuralPartialEq for object::common::SegmentFlags

sourceยง

impl StructuralPartialEq for SubArchitecture

sourceยง

impl StructuralPartialEq for SymbolKind

sourceยง

impl StructuralPartialEq for SymbolScope

sourceยง

impl StructuralPartialEq for object::endian::Endianness

sourceยง

impl StructuralPartialEq for CompressionFormat

sourceยง

impl StructuralPartialEq for FileKind

sourceยง

impl StructuralPartialEq for ObjectKind

sourceยง

impl StructuralPartialEq for RelocationTarget

sourceยง

impl StructuralPartialEq for SymbolSection

sourceยง

impl StructuralPartialEq for Op

sourceยง

impl StructuralPartialEq for CDataModel

sourceยง

impl StructuralPartialEq for Size

sourceยง

impl StructuralPartialEq for ParseError

sourceยง

impl StructuralPartialEq for Aarch64Architecture

sourceยง

impl StructuralPartialEq for target_lexicon::targets::Architecture

sourceยง

impl StructuralPartialEq for ArmArchitecture

sourceยง

impl StructuralPartialEq for target_lexicon::targets::BinaryFormat

sourceยง

impl StructuralPartialEq for Environment

sourceยง

impl StructuralPartialEq for Mips32Architecture

sourceยง

impl StructuralPartialEq for Mips64Architecture

sourceยง

impl StructuralPartialEq for OperatingSystem

sourceยง

impl StructuralPartialEq for Riscv32Architecture

sourceยง

impl StructuralPartialEq for Riscv64Architecture

sourceยง

impl StructuralPartialEq for Vendor

sourceยง

impl StructuralPartialEq for X86_32Architecture

sourceยง

impl StructuralPartialEq for CallingConvention

sourceยง

impl StructuralPartialEq for target_lexicon::triple::Endianness

sourceยง

impl StructuralPartialEq for PointerWidth

sourceยง

impl StructuralPartialEq for bool

sourceยง

impl StructuralPartialEq for char

sourceยง

impl StructuralPartialEq for i8

sourceยง

impl StructuralPartialEq for i16

sourceยง

impl StructuralPartialEq for i32

sourceยง

impl StructuralPartialEq for i64

sourceยง

impl StructuralPartialEq for i128

sourceยง

impl StructuralPartialEq for isize

sourceยง

impl StructuralPartialEq for str

sourceยง

impl StructuralPartialEq for u8

sourceยง

impl StructuralPartialEq for u16

sourceยง

impl StructuralPartialEq for u32

sourceยง

impl StructuralPartialEq for u64

sourceยง

impl StructuralPartialEq for u128

sourceยง

impl StructuralPartialEq for ()

sourceยง

impl StructuralPartialEq for usize

1.0.0 ยท sourceยง

impl StructuralPartialEq for String

sourceยง

impl StructuralPartialEq for BuiltinFunctionIndex

sourceยง

impl StructuralPartialEq for CallIndirectSiteIndex

sourceยง

impl StructuralPartialEq for ConstExpr

sourceยง

impl StructuralPartialEq for DataIndex

sourceยง

impl StructuralPartialEq for DefinedFuncIndex

sourceยง

impl StructuralPartialEq for DefinedGlobalIndex

sourceยง

impl StructuralPartialEq for DefinedMemoryIndex

sourceยง

impl StructuralPartialEq for DefinedTableIndex

sourceยง

impl StructuralPartialEq for ElemIndex

sourceยง

impl StructuralPartialEq for EngineInternedRecGroupIndex

sourceยง

impl StructuralPartialEq for FilePos

sourceยง

impl StructuralPartialEq for FuncIndex

sourceยง

impl StructuralPartialEq for FuncRefIndex

sourceยง

impl StructuralPartialEq for Global

sourceยง

impl StructuralPartialEq for GlobalIndex

sourceยง

impl StructuralPartialEq for InstructionAddressMap

sourceยง

impl StructuralPartialEq for Memory

sourceยง

impl StructuralPartialEq for MemoryIndex

sourceยง

impl StructuralPartialEq for ModuleInternedRecGroupIndex

sourceยง

impl StructuralPartialEq for ModuleInternedTypeIndex

sourceยง

impl StructuralPartialEq for OwnedMemoryIndex

sourceยง

impl StructuralPartialEq for RecGroupRelativeTypeIndex

sourceยง

impl StructuralPartialEq for StaticModuleIndex

sourceยง

impl StructuralPartialEq for Table

sourceยง

impl StructuralPartialEq for TableIndex

sourceยง

impl StructuralPartialEq for Tag

sourceยง

impl StructuralPartialEq for TagIndex

sourceยง

impl StructuralPartialEq for TrapInformation

sourceยง

impl StructuralPartialEq for TypeIndex

sourceยง

impl StructuralPartialEq for VMSharedTypeIndex

sourceยง

impl StructuralPartialEq for WasmArrayType

sourceยง

impl StructuralPartialEq for WasmFieldType

sourceยง

impl StructuralPartialEq for WasmFuncType

sourceยง

impl StructuralPartialEq for WasmRecGroup

sourceยง

impl StructuralPartialEq for WasmRefType

sourceยง

impl StructuralPartialEq for WasmStructType

sourceยง

impl StructuralPartialEq for WasmSubType

sourceยง

impl StructuralPartialEq for ArrayType

sourceยง

impl StructuralPartialEq for FieldType

sourceยง

impl StructuralPartialEq for FuncType

sourceยง

impl StructuralPartialEq for GlobalType

sourceยง

impl StructuralPartialEq for Ieee32

sourceยง

impl StructuralPartialEq for Ieee64

sourceยง

impl StructuralPartialEq for MemoryType

sourceยง

impl StructuralPartialEq for PackedIndex

sourceยง

impl StructuralPartialEq for RefType

sourceยง

impl StructuralPartialEq for RelocationEntry

sourceยง

impl StructuralPartialEq for wasmtime_environ::wasmparser::SegmentFlags

sourceยง

impl StructuralPartialEq for StructType

sourceยง

impl StructuralPartialEq for SubType

sourceยง

impl StructuralPartialEq for wasmtime_environ::wasmparser::SymbolFlags

sourceยง

impl StructuralPartialEq for TableType

sourceยง

impl StructuralPartialEq for V128

sourceยง

impl StructuralPartialEq for ValidatorId

sourceยง

impl StructuralPartialEq for AliasableResourceId

sourceยง

impl StructuralPartialEq for ComponentCoreInstanceTypeId

sourceยง

impl StructuralPartialEq for ComponentCoreModuleTypeId

sourceยง

impl StructuralPartialEq for ComponentDefinedTypeId

sourceยง

impl StructuralPartialEq for ComponentFuncTypeId

sourceยง

impl StructuralPartialEq for ComponentInstanceTypeId

sourceยง

impl StructuralPartialEq for ComponentTypeId

sourceยง

impl StructuralPartialEq for ComponentValueTypeId

sourceยง

impl StructuralPartialEq for CoreTypeId

sourceยง

impl StructuralPartialEq for RecGroupId

sourceยง

impl StructuralPartialEq for ResourceId

sourceยง

impl StructuralPartialEq for AllocError

1.28.0 ยท sourceยง

impl StructuralPartialEq for Layout

1.50.0 ยท sourceยง

impl StructuralPartialEq for LayoutError

1.27.0 ยท sourceยง

impl StructuralPartialEq for CpuidResult

1.34.0 ยท sourceยง

impl StructuralPartialEq for CharTryFromError

1.9.0 ยท sourceยง

impl StructuralPartialEq for DecodeUtf16Error

1.20.0 ยท sourceยง

impl StructuralPartialEq for ParseCharError

1.59.0 ยท sourceยง

impl StructuralPartialEq for TryFromCharError

1.69.0 ยท sourceยง

impl StructuralPartialEq for FromBytesUntilNulError

1.64.0 ยท sourceยง

impl StructuralPartialEq for FromBytesWithNulError

1.0.0 ยท sourceยง

impl StructuralPartialEq for wasmtime_environ::__core::fmt::Error

sourceยง

impl StructuralPartialEq for Assume

1.0.0 ยท sourceยง

impl StructuralPartialEq for AddrParseError

1.0.0 ยท sourceยง

impl StructuralPartialEq for Ipv4Addr

1.0.0 ยท sourceยง

impl StructuralPartialEq for Ipv6Addr

1.0.0 ยท sourceยง

impl StructuralPartialEq for SocketAddrV4

1.0.0 ยท sourceยง

impl StructuralPartialEq for SocketAddrV6

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseFloatError

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseIntError

1.34.0 ยท sourceยง

impl StructuralPartialEq for TryFromIntError

1.0.0 ยท sourceยง

impl StructuralPartialEq for RangeFull

sourceยง

impl StructuralPartialEq for wasmtime_environ::__core::ptr::Alignment

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseBoolError

1.0.0 ยท sourceยง

impl StructuralPartialEq for Utf8Error

1.36.0 ยท sourceยง

impl StructuralPartialEq for RawWaker

1.36.0 ยท sourceยง

impl StructuralPartialEq for RawWakerVTable

1.3.0 ยท sourceยง

impl StructuralPartialEq for Duration

1.66.0 ยท sourceยง

impl StructuralPartialEq for TryFromFloatSecsError

sourceยง

impl StructuralPartialEq for UnorderedKeyError

1.57.0 ยท sourceยง

impl StructuralPartialEq for alloc::collections::TryReserveError

1.64.0 ยท sourceยง

impl StructuralPartialEq for CString

1.64.0 ยท sourceยง

impl StructuralPartialEq for FromVecWithNulError

1.64.0 ยท sourceยง

impl StructuralPartialEq for IntoStringError

1.64.0 ยท sourceยง

impl StructuralPartialEq for NulError

1.0.0 ยท sourceยง

impl StructuralPartialEq for FromUtf8Error

sourceยง

impl StructuralPartialEq for indexmap::TryReserveError

sourceยง

impl StructuralPartialEq for BigEndian

sourceยง

impl StructuralPartialEq for LittleEndian

sourceยง

impl StructuralPartialEq for CompressedFileRange

sourceยง

impl StructuralPartialEq for object::read::Error

sourceยง

impl StructuralPartialEq for SectionIndex

sourceยง

impl StructuralPartialEq for SymbolIndex

sourceยง

impl StructuralPartialEq for BuildMetadata

sourceยง

impl StructuralPartialEq for Comparator

sourceยง

impl StructuralPartialEq for Prerelease

sourceยง

impl StructuralPartialEq for Version

sourceยง

impl StructuralPartialEq for VersionReq

sourceยง

impl StructuralPartialEq for IgnoredAny

sourceยง

impl StructuralPartialEq for serde::de::value::Error

sourceยง

impl StructuralPartialEq for DefaultToHost

sourceยง

impl StructuralPartialEq for DefaultToUnknown

sourceยง

impl StructuralPartialEq for Triple

1.33.0 ยท sourceยง

impl StructuralPartialEq for PhantomPinned

sourceยง

impl<'a> StructuralPartialEq for FlagValue<'a>

sourceยง

impl<'a> StructuralPartialEq for ComponentDefinedType<'a>

sourceยง

impl<'a> StructuralPartialEq for Unexpected<'a>

sourceยง

impl<'a> StructuralPartialEq for DependencyName<'a>

sourceยง

impl<'a> StructuralPartialEq for HashName<'a>

sourceยง

impl<'a> StructuralPartialEq for InterfaceName<'a>

sourceยง

impl<'a> StructuralPartialEq for ResourceFunc<'a>

sourceยง

impl<'a> StructuralPartialEq for UrlName<'a>

sourceยง

impl<'a> StructuralPartialEq for VariantCase<'a>

1.10.0 ยท sourceยง

impl<'a> StructuralPartialEq for Location<'a>

1.79.0 ยท sourceยง

impl<'a> StructuralPartialEq for Utf8Chunk<'a>

sourceยง

impl<'data> StructuralPartialEq for CodeView<'data>

sourceยง

impl<'data> StructuralPartialEq for CompressedData<'data>

sourceยง

impl<'data> StructuralPartialEq for Export<'data>

sourceยง

impl<'data> StructuralPartialEq for Import<'data>

sourceยง

impl<'data> StructuralPartialEq for ObjectMapEntry<'data>

sourceยง

impl<'data> StructuralPartialEq for SymbolMapName<'data>

sourceยง

impl<'data> StructuralPartialEq for Bytes<'data>

1.55.0 ยท sourceยง

impl<B, C> StructuralPartialEq for ControlFlow<B, C>

sourceยง

impl<E> StructuralPartialEq for I16<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for I32<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for I64<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U16<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U32<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U64<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for I16Bytes<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for I32Bytes<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for I64Bytes<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U16Bytes<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U32Bytes<E>
where E: Endian,

sourceยง

impl<E> StructuralPartialEq for U64Bytes<E>
where E: Endian,

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for Range<Idx>

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeFrom<Idx>

1.26.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeInclusive<Idx>

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeTo<Idx>

1.26.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeToInclusive<Idx>

sourceยง

impl<K, V> StructuralPartialEq for PrimaryMap<K, V>
where K: EntityRef,

sourceยง

impl<Section, Symbol> StructuralPartialEq for object::common::SymbolFlags<Section, Symbol>

1.17.0 ยท sourceยง

impl<T> StructuralPartialEq for Bound<T>

1.0.0 ยท sourceยง

impl<T> StructuralPartialEq for Option<T>

1.36.0 ยท sourceยง

impl<T> StructuralPartialEq for Poll<T>

sourceยง

impl<T> StructuralPartialEq for &T
where T: ?Sized,

sourceยง

impl<T> StructuralPartialEq for [T]

sourceยง

impl<T> StructuralPartialEq for (Tโ‚, Tโ‚‚, โ€ฆ, Tโ‚™)

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

sourceยง

impl<T> StructuralPartialEq for PackedOption<T>
where T: ReservedValue,

sourceยง

impl<T> StructuralPartialEq for EntityList<T>

1.19.0 ยท sourceยง

impl<T> StructuralPartialEq for Reverse<T>

1.20.0 ยท sourceยง

impl<T> StructuralPartialEq for ManuallyDrop<T>
where T: ?Sized,

sourceยง

impl<T> StructuralPartialEq for NonZero<T>

1.74.0 ยท sourceยง

impl<T> StructuralPartialEq for Saturating<T>

1.0.0 ยท sourceยง

impl<T> StructuralPartialEq for Wrapping<T>

sourceยง

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

1.0.0 ยท sourceยง

impl<T, E> StructuralPartialEq for Result<T, E>

sourceยง

impl<T, const N: usize> StructuralPartialEq for [T; N]

sourceยง

impl<Y, R> StructuralPartialEq for CoroutineState<Y, R>