Trait StructuralPartialEq

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

Required trait for constants used in pattern matches.

Constants are only allowed as patterns if (a) their type implements PartialEq, and (b) interpreting the value of the constant as a pattern is equialent to calling PartialEq. This ensures that constants used as patterns cannot expose implementation details in an unexpected way or cause semver hazards.

This trait ensures point (b). Any type that derives PartialEq automatically implements this trait.

Implementing this trait (which is unstable) is a way for type authors to explicitly allow comparing const values of this type; that operation will recursively compare all fields (including private fields), even if that behavior differs from PartialEq. This can make it semver-breaking to add further private fields to a type.

Implementorsยง

Sourceยง

impl StructuralPartialEq for AsciiChar

1.0.0 ยท Sourceยง

impl StructuralPartialEq for origin_studio::cmp::Ordering

Sourceยง

impl StructuralPartialEq for TryReserveErrorKind

Sourceยง

impl StructuralPartialEq for VarError

1.28.0 ยท Sourceยง

impl StructuralPartialEq for origin_studio::fmt::Alignment

Sourceยง

impl StructuralPartialEq for DebugAsHex

Sourceยง

impl StructuralPartialEq for Sign

Sourceยง

impl StructuralPartialEq for origin_studio::io::SeekFrom

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

1.86.0 ยท Sourceยง

impl StructuralPartialEq for GetDisjointMutError

Sourceยง

impl StructuralPartialEq for SearchStep

1.0.0 ยท Sourceยง

impl StructuralPartialEq for origin_studio::sync::atomic::Ordering

1.64.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesWithNulError

Sourceยง

impl StructuralPartialEq for DwarfFileType

Sourceยง

impl StructuralPartialEq for Format

Sourceยง

impl StructuralPartialEq for SectionId

Sourceยง

impl StructuralPartialEq for Vendor

Sourceยง

impl StructuralPartialEq for RunTimeEndian

Sourceยง

impl StructuralPartialEq for Pointer

Sourceยง

impl StructuralPartialEq for gimli::read::Error

Sourceยง

impl StructuralPartialEq for IndexSectionId

Sourceยง

impl StructuralPartialEq for Value

Sourceยง

impl StructuralPartialEq for ValueType

Sourceยง

impl StructuralPartialEq for fsconfig_command

Sourceยง

impl StructuralPartialEq for membarrier_cmd

Sourceยง

impl StructuralPartialEq for membarrier_cmd_flag

Sourceยง

impl StructuralPartialEq for procmap_query_flags

Sourceยง

impl StructuralPartialEq for rustix::backend::fs::types::Advice

Sourceยง

impl StructuralPartialEq for FileType

Sourceยง

impl StructuralPartialEq for FlockOperation

Sourceยง

impl StructuralPartialEq for rustix::backend::mm::types::Advice

Sourceยง

impl StructuralPartialEq for Resource

Sourceยง

impl StructuralPartialEq for MembarrierCommand

Sourceยง

impl StructuralPartialEq for TimerfdClockId

Sourceยง

impl StructuralPartialEq for ClockId

Sourceยง

impl StructuralPartialEq for rustix::fs::seek_from::SeekFrom

Sourceยง

impl StructuralPartialEq for Direction

Sourceยง

impl StructuralPartialEq for DumpableBehavior

Sourceยง

impl StructuralPartialEq for EndianMode

Sourceยง

impl StructuralPartialEq for FloatingPointMode

Sourceยง

impl StructuralPartialEq for MachineCheckMemoryCorruptionKillPolicy

Sourceยง

impl StructuralPartialEq for PTracer

Sourceยง

impl StructuralPartialEq for SpeculationFeature

Sourceยง

impl StructuralPartialEq for TimeStampCounterReadability

Sourceยง

impl StructuralPartialEq for TimingMethod

Sourceยง

impl StructuralPartialEq for VirtualMemoryMapAddress

Sourceยง

impl StructuralPartialEq for FlockOffsetType

Sourceยง

impl StructuralPartialEq for FlockType

Sourceยง

impl StructuralPartialEq for WakeOp

Sourceยง

impl StructuralPartialEq for WakeOpCmp

Sourceยง

impl StructuralPartialEq for Capability

Sourceยง

impl StructuralPartialEq for CoreSchedulingScope

Sourceยง

impl StructuralPartialEq for SecureComputingMode

Sourceยง

impl StructuralPartialEq for SysCallUserDispatchFastSwitch

Sourceยง

impl StructuralPartialEq for LinkNameSpaceType

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

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

Sourceยง

impl StructuralPartialEq for UnorderedKeyError

1.57.0 ยท Sourceยง

impl StructuralPartialEq for 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 origin_studio::fmt::Error

Sourceยง

impl StructuralPartialEq for FormattingOptions

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 origin_studio::ptr::Alignment

1.0.0 ยท Sourceยง

impl StructuralPartialEq for ParseBoolError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Utf8Error

1.0.0 ยท Sourceยง

impl StructuralPartialEq for FromUtf8Error

1.0.0 ยท Sourceยง

impl StructuralPartialEq for String

1.3.0 ยท Sourceยง

impl StructuralPartialEq for Duration

1.66.0 ยท Sourceยง

impl StructuralPartialEq for TryFromFloatSecsError

1.64.0 ยท Sourceยง

impl StructuralPartialEq for CStr

1.69.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesUntilNulError

1.36.0 ยท Sourceยง

impl StructuralPartialEq for RawWaker

1.36.0 ยท Sourceยง

impl StructuralPartialEq for RawWakerVTable

Sourceยง

impl StructuralPartialEq for DebugTypeSignature

Sourceยง

impl StructuralPartialEq for DwoId

Sourceยง

impl StructuralPartialEq for Encoding

Sourceยง

impl StructuralPartialEq for LineEncoding

Sourceยง

impl StructuralPartialEq for Register

Sourceยง

impl StructuralPartialEq for DwAccess

Sourceยง

impl StructuralPartialEq for DwAddr

Sourceยง

impl StructuralPartialEq for DwAt

Sourceยง

impl StructuralPartialEq for DwAte

Sourceยง

impl StructuralPartialEq for DwCc

Sourceยง

impl StructuralPartialEq for DwCfa

Sourceยง

impl StructuralPartialEq for DwChildren

Sourceยง

impl StructuralPartialEq for DwDefaulted

Sourceยง

impl StructuralPartialEq for DwDs

Sourceยง

impl StructuralPartialEq for DwDsc

Sourceยง

impl StructuralPartialEq for DwEhPe

Sourceยง

impl StructuralPartialEq for DwEnd

Sourceยง

impl StructuralPartialEq for DwForm

Sourceยง

impl StructuralPartialEq for DwId

Sourceยง

impl StructuralPartialEq for DwIdx

Sourceยง

impl StructuralPartialEq for DwInl

Sourceยง

impl StructuralPartialEq for DwLang

Sourceยง

impl StructuralPartialEq for DwLle

Sourceยง

impl StructuralPartialEq for DwLnct

Sourceยง

impl StructuralPartialEq for DwLne

Sourceยง

impl StructuralPartialEq for DwLns

Sourceยง

impl StructuralPartialEq for DwMacro

Sourceยง

impl StructuralPartialEq for DwOp

Sourceยง

impl StructuralPartialEq for DwOrd

Sourceยง

impl StructuralPartialEq for DwRle

Sourceยง

impl StructuralPartialEq for DwSect

Sourceยง

impl StructuralPartialEq for DwSectV2

Sourceยง

impl StructuralPartialEq for DwTag

Sourceยง

impl StructuralPartialEq for DwUt

Sourceยง

impl StructuralPartialEq for DwVirtuality

Sourceยง

impl StructuralPartialEq for DwVis

Sourceยง

impl StructuralPartialEq for BigEndian

Sourceยง

impl StructuralPartialEq for LittleEndian

Sourceยง

impl StructuralPartialEq for ArangeEntry

Sourceยง

impl StructuralPartialEq for Augmentation

Sourceยง

impl StructuralPartialEq for BaseAddresses

Sourceยง

impl StructuralPartialEq for SectionBaseAddresses

Sourceยง

impl StructuralPartialEq for UnitIndexSection

Sourceยง

impl StructuralPartialEq for ReaderOffsetId

Sourceยง

impl StructuralPartialEq for gimli::read::rnglists::Range

Sourceยง

impl StructuralPartialEq for StoreOnHeap

Sourceยง

impl StructuralPartialEq for Thread

Sourceยง

impl StructuralPartialEq for WaitTimeoutResult

Sourceยง

impl StructuralPartialEq for CreateFlags

Sourceยง

impl StructuralPartialEq for ReadFlags

Sourceยง

impl StructuralPartialEq for WatchFlags

Sourceยง

impl StructuralPartialEq for Access

Sourceยง

impl StructuralPartialEq for AtFlags

Sourceยง

impl StructuralPartialEq for FallocateFlags

Sourceยง

impl StructuralPartialEq for MemfdFlags

Sourceยง

impl StructuralPartialEq for Mode

Sourceยง

impl StructuralPartialEq for OFlags

Sourceยง

impl StructuralPartialEq for RenameFlags

Sourceยง

impl StructuralPartialEq for ResolveFlags

Sourceยง

impl StructuralPartialEq for SealFlags

Sourceยง

impl StructuralPartialEq for StatVfsMountFlags

Sourceยง

impl StructuralPartialEq for Errno

Sourceยง

impl StructuralPartialEq for DupFlags

Sourceยง

impl StructuralPartialEq for FdFlags

Sourceยง

impl StructuralPartialEq for ReadWriteFlags

Sourceยง

impl StructuralPartialEq for MapFlags

Sourceยง

impl StructuralPartialEq for MlockAllFlags

Sourceยง

impl StructuralPartialEq for MlockFlags

Sourceยง

impl StructuralPartialEq for MprotectFlags

Sourceยง

impl StructuralPartialEq for MremapFlags

Sourceยง

impl StructuralPartialEq for MsyncFlags

Sourceยง

impl StructuralPartialEq for ProtFlags

Sourceยง

impl StructuralPartialEq for UserfaultfdFlags

Sourceยง

impl StructuralPartialEq for Flags

Sourceยง

impl StructuralPartialEq for WaitFlags

Sourceยง

impl StructuralPartialEq for TimerfdFlags

Sourceยง

impl StructuralPartialEq for TimerfdTimerFlags

Sourceยง

impl StructuralPartialEq for IFlags

Sourceยง

impl StructuralPartialEq for StatxAttributes

Sourceยง

impl StructuralPartialEq for StatxFlags

Sourceยง

impl StructuralPartialEq for XattrFlags

Sourceยง

impl StructuralPartialEq for Pid

Sourceยง

impl StructuralPartialEq for PidfdFlags

Sourceยง

impl StructuralPartialEq for PidfdGetfdFlags

Sourceยง

impl StructuralPartialEq for FloatingPointEmulationControl

Sourceยง

impl StructuralPartialEq for FloatingPointExceptionMode

Sourceยง

impl StructuralPartialEq for SpeculationFeatureControl

Sourceยง

impl StructuralPartialEq for SpeculationFeatureState

Sourceยง

impl StructuralPartialEq for UnalignedAccessControl

Sourceยง

impl StructuralPartialEq for Rlimit

Sourceยง

impl StructuralPartialEq for Flock

Sourceยง

impl StructuralPartialEq for WaitIdOptions

Sourceยง

impl StructuralPartialEq for WaitOptions

Sourceยง

impl StructuralPartialEq for KernelSigactionFlags

Sourceยง

impl StructuralPartialEq for Signal

Sourceยง

impl StructuralPartialEq for WaitvFlags

Sourceยง

impl StructuralPartialEq for Cpuid

Sourceยง

impl StructuralPartialEq for CapabilityFlags

Sourceยง

impl StructuralPartialEq for CapabilitySets

Sourceยง

impl StructuralPartialEq for MembarrierQuery

Sourceยง

impl StructuralPartialEq for CapabilitiesSecureBits

Sourceยง

impl StructuralPartialEq for SVEVectorLengthConfig

Sourceยง

impl StructuralPartialEq for TaggedAddressMode

Sourceยง

impl StructuralPartialEq for ThreadNameSpaceType

Sourceยง

impl StructuralPartialEq for UnshareFlags

Sourceยง

impl StructuralPartialEq for Timespec

Sourceยง

impl StructuralPartialEq for Gid

Sourceยง

impl StructuralPartialEq for Uid

Sourceยง

impl StructuralPartialEq for UnwindAction

Sourceยง

impl StructuralPartialEq for UnwindReasonCode

1.33.0 ยท Sourceยง

impl StructuralPartialEq for PhantomPinned

Sourceยง

impl<'a> StructuralPartialEq for Utf8Pattern<'a>

1.10.0 ยท Sourceยง

impl<'a> StructuralPartialEq for origin_studio::panic::Location<'a>

1.79.0 ยท Sourceยง

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

Sourceยง

impl<'a> StructuralPartialEq for PhantomContravariantLifetime<'a>

Sourceยง

impl<'a> StructuralPartialEq for PhantomCovariantLifetime<'a>

Sourceยง

impl<'a> StructuralPartialEq for PhantomInvariantLifetime<'a>

Sourceยง

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

Sourceยง

impl<'bases, Section, R> StructuralPartialEq for PartialFrameDescriptionEntry<'bases, Section, R>
where R: Reader, Section: UnwindSection<R>,

Sourceยง

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

1.55.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::ops::Range<Idx>

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::ops::RangeFrom<Idx>

1.26.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::ops::RangeInclusive<Idx>

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for RangeTo<Idx>

1.26.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for RangeToInclusive<Idx>

Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::range::Range<Idx>

Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::range::RangeFrom<Idx>

Sourceยง

impl<Idx> StructuralPartialEq for origin_studio::range::RangeInclusive<Idx>

Sourceยง

impl<R> StructuralPartialEq for EvaluationResult<R>
where R: Reader,

Sourceยง

impl<R> StructuralPartialEq for DebugFrame<R>
where R: Reader,

Sourceยง

impl<R> StructuralPartialEq for EhFrame<R>
where R: Reader,

Sourceยง

impl<R> StructuralPartialEq for EhFrameHdr<R>
where R: Reader,

Sourceยง

impl<R> StructuralPartialEq for LocationListEntry<R>
where R: Reader,

Sourceยง

impl<R> StructuralPartialEq for Expression<R>
where R: Reader,

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<R, Offset> StructuralPartialEq for CommonInformationEntry<R, Offset>
where R: Reader<Offset = Offset>, Offset: ReaderOffset,

Sourceยง

impl<R, Offset> StructuralPartialEq for FrameDescriptionEntry<R, Offset>
where R: Reader<Offset = Offset>, Offset: ReaderOffset,

Sourceยง

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

Sourceยง

impl<Storage> StructuralPartialEq for __BindgenBitfieldUnit<Storage>

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

Sourceยง

impl<T> StructuralPartialEq for CallFrameInstruction<T>
where T: ReaderOffset,

Sourceยง

impl<T> StructuralPartialEq for CfaRule<T>
where T: ReaderOffset,

Sourceยง

impl<T> StructuralPartialEq for RegisterRule<T>
where T: ReaderOffset,

Sourceยง

impl<T> StructuralPartialEq for DieReference<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.

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

Sourceยง

impl<T> StructuralPartialEq for DebugAddrBase<T>

Sourceยง

impl<T> StructuralPartialEq for DebugAddrIndex<T>

Sourceยง

impl<T> StructuralPartialEq for DebugArangesOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugFrameOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugInfoOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugLineOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugLineStrOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugLocListsBase<T>

Sourceยง

impl<T> StructuralPartialEq for DebugLocListsIndex<T>

Sourceยง

impl<T> StructuralPartialEq for DebugMacinfoOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugMacroOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugRngListsBase<T>

Sourceยง

impl<T> StructuralPartialEq for DebugRngListsIndex<T>

Sourceยง

impl<T> StructuralPartialEq for DebugStrOffset<T>

Sourceยง

impl<T> StructuralPartialEq for DebugStrOffsetsBase<T>

Sourceยง

impl<T> StructuralPartialEq for DebugStrOffsetsIndex<T>

Sourceยง

impl<T> StructuralPartialEq for DebugTypesOffset<T>

Sourceยง

impl<T> StructuralPartialEq for EhFrameOffset<T>

Sourceยง

impl<T> StructuralPartialEq for LocationListsOffset<T>

Sourceยง

impl<T> StructuralPartialEq for RangeListsOffset<T>

Sourceยง

impl<T> StructuralPartialEq for RawRangeListsOffset<T>

Sourceยง

impl<T> StructuralPartialEq for UnwindExpression<T>
where T: ReaderOffset,

Sourceยง

impl<T> StructuralPartialEq for UnitOffset<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, S> StructuralPartialEq for UnwindContext<T, S>

Sourceยง

impl<T, S> StructuralPartialEq for UnwindTableRow<T, S>

Sourceยง

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

Sourceยง

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