wiwi::prelude_std::marker

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.

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 DecodeError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for wiwi::prelude_std::atomic::Ordering

1.0.0 ยท Sourceยง

impl StructuralPartialEq for wiwi::prelude_std::cmp::Ordering

1.0.0 ยท Sourceยง

impl StructuralPartialEq for VarError

1.28.0 ยท Sourceยง

impl StructuralPartialEq for wiwi::prelude_std::fmt::Alignment

Sourceยง

impl StructuralPartialEq for BacktraceStyle

Sourceยง

impl StructuralPartialEq for SearchStep

Sourceยง

impl StructuralPartialEq for alloc::collections::TryReserveErrorKind

Sourceยง

impl StructuralPartialEq for AsciiChar

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.65.0 ยท Sourceยง

impl StructuralPartialEq for BacktraceStatus

1.0.0 ยท Sourceยง

impl StructuralPartialEq for SeekFrom

1.0.0 ยท Sourceยง

impl StructuralPartialEq for ErrorKind

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Shutdown

1.12.0 ยท Sourceยง

impl StructuralPartialEq for RecvTimeoutError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for std::sync::mpsc::TryRecvError

Sourceยง

impl StructuralPartialEq for _Unwind_Action

Sourceยง

impl StructuralPartialEq for _Unwind_Reason_Code

Sourceยง

impl StructuralPartialEq for Colons

Sourceยง

impl StructuralPartialEq for Fixed

Sourceยง

impl StructuralPartialEq for Numeric

Sourceยง

impl StructuralPartialEq for OffsetPrecision

Sourceยง

impl StructuralPartialEq for Pad

Sourceยง

impl StructuralPartialEq for ParseErrorKind

Sourceยง

impl StructuralPartialEq for SecondsFormat

Sourceยง

impl StructuralPartialEq for Month

Sourceยง

impl StructuralPartialEq for RoundingError

Sourceยง

impl StructuralPartialEq for Weekday

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 wiwi::prelude_std::alloc_mod::AllocError

1.28.0 ยท Sourceยง

impl StructuralPartialEq for Layout

1.50.0 ยท Sourceยง

impl StructuralPartialEq for LayoutError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Error

Sourceยง

impl StructuralPartialEq for Assume

1.0.0 ยท Sourceยง

impl StructuralPartialEq for RangeFull

Sourceยง

impl StructuralPartialEq for wiwi::prelude_std::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.33.0 ยท Sourceยง

impl StructuralPartialEq for PhantomPinned

1.0.0 ยท Sourceยง

impl StructuralPartialEq for String

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.34.0 ยท Sourceยง

impl StructuralPartialEq for CharTryFromError

1.20.0 ยท Sourceยง

impl StructuralPartialEq for ParseCharError

1.9.0 ยท Sourceยง

impl StructuralPartialEq for DecodeUtf16Error

1.59.0 ยท Sourceยง

impl StructuralPartialEq for TryFromCharError

1.27.0 ยท Sourceยง

impl StructuralPartialEq for CpuidResult

1.64.0 ยท Sourceยง

impl StructuralPartialEq for CStr

1.69.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesUntilNulError

1.64.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesWithNulError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Ipv4Addr

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Ipv6Addr

1.0.0 ยท Sourceยง

impl StructuralPartialEq for AddrParseError

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

1.1.0 ยท Sourceยง

impl StructuralPartialEq for FileType

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Permissions

Sourceยง

impl StructuralPartialEq for std::os::unix::net::ucred::UCred

1.7.0 ยท Sourceยง

impl StructuralPartialEq for StripPrefixError

1.61.0 ยท Sourceยง

impl StructuralPartialEq for ExitCode

1.0.0 ยท Sourceยง

impl StructuralPartialEq for ExitStatus

Sourceยง

impl StructuralPartialEq for ExitStatusError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Output

1.5.0 ยท Sourceยง

impl StructuralPartialEq for std::sync::condvar::WaitTimeoutResult

1.0.0 ยท Sourceยง

impl StructuralPartialEq for std::sync::mpsc::RecvError

1.26.0 ยท Sourceยง

impl StructuralPartialEq for AccessError

1.19.0 ยท Sourceยง

impl StructuralPartialEq for ThreadId

1.8.0 ยท Sourceยง

impl StructuralPartialEq for std::time::Instant

1.8.0 ยท Sourceยง

impl StructuralPartialEq for SystemTime

Sourceยง

impl StructuralPartialEq for Parsed

Sourceยง

impl StructuralPartialEq for InternalFixed

Sourceยง

impl StructuralPartialEq for InternalNumeric

Sourceยง

impl StructuralPartialEq for OffsetFormat

Sourceยง

impl StructuralPartialEq for ParseError

Sourceยง

impl StructuralPartialEq for Months

Sourceยง

impl StructuralPartialEq for ParseMonthError

Sourceยง

impl StructuralPartialEq for NaiveDate

Sourceยง

impl StructuralPartialEq for NaiveDateDaysIterator

Sourceยง

impl StructuralPartialEq for NaiveDateWeeksIterator

Sourceยง

impl StructuralPartialEq for NaiveDateTime

Sourceยง

impl StructuralPartialEq for IsoWeek

Sourceยง

impl StructuralPartialEq for Days

Sourceยง

impl StructuralPartialEq for NaiveTime

Sourceยง

impl StructuralPartialEq for FixedOffset

Sourceยง

impl StructuralPartialEq for Utc

Sourceยง

impl StructuralPartialEq for OutOfRange

Sourceยง

impl StructuralPartialEq for OutOfRangeError

Sourceยง

impl StructuralPartialEq for TimeDelta

Sourceยง

impl StructuralPartialEq for ParseWeekdayError

ยง

impl StructuralPartialEq for AllocError

ยง

impl StructuralPartialEq for Domain

ยง

impl StructuralPartialEq for Elapsed

ยง

impl StructuralPartialEq for FilterOp

ยง

impl StructuralPartialEq for Id

ยง

impl StructuralPartialEq for Instant

ยง

impl StructuralPartialEq for Interest

ยง

impl StructuralPartialEq for Interest

ยง

impl StructuralPartialEq for MissedTickBehavior

ยง

impl StructuralPartialEq for OnceState

ยง

impl StructuralPartialEq for ParkResult

ยง

impl StructuralPartialEq for ParkToken

ยง

impl StructuralPartialEq for Protocol

ยง

impl StructuralPartialEq for Ready

ยง

impl StructuralPartialEq for RecvError

ยง

impl StructuralPartialEq for RecvError

ยง

impl StructuralPartialEq for RecvFlags

ยง

impl StructuralPartialEq for RequeueOp

ยง

impl StructuralPartialEq for RuntimeFlavor

ยง

impl StructuralPartialEq for SigId

ยง

impl StructuralPartialEq for SignalKind

ยง

impl StructuralPartialEq for Token

ยง

impl StructuralPartialEq for TryAcquireError

ยง

impl StructuralPartialEq for TryRecvError

ยง

impl StructuralPartialEq for TryRecvError

ยง

impl StructuralPartialEq for TryRecvError

ยง

impl StructuralPartialEq for TryReserveError

ยง

impl StructuralPartialEq for TryReserveError

ยง

impl StructuralPartialEq for TryReserveErrorKind

ยง

impl StructuralPartialEq for Type

ยง

impl StructuralPartialEq for UCred

ยง

impl StructuralPartialEq for UnparkResult

ยง

impl StructuralPartialEq for UnparkToken

ยง

impl StructuralPartialEq for WaitTimeoutResult

Sourceยง

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

1.0.0 ยท Sourceยง

impl<'a> StructuralPartialEq for Component<'a>

1.0.0 ยท Sourceยง

impl<'a> StructuralPartialEq for Prefix<'a>

Sourceยง

impl<'a> StructuralPartialEq for Item<'a>

1.10.0 ยท Sourceยง

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

1.79.0 ยท Sourceยง

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

1.55.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for wiwi::prelude_std::ops::Range<Idx>

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for wiwi::prelude_std::ops::RangeFrom<Idx>

1.26.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for wiwi::prelude_std::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 core::range::Range<Idx>

Sourceยง

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

Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for Option<T>

1.17.0 ยท Sourceยง

impl<T> StructuralPartialEq for Bound<T>

1.36.0 ยท Sourceยง

impl<T> StructuralPartialEq for Poll<T>

Sourceยง

impl<T> StructuralPartialEq for std::sync::mpmc::error::SendTimeoutError<T>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for std::sync::mpsc::TrySendError<T>

Sourceยง

impl<T> StructuralPartialEq for LocalResult<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 PhantomData<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>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for Cursor<T>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for std::sync::mpsc::SendError<T>

ยง

impl<T> StructuralPartialEq for SendError<T>

ยง

impl<T> StructuralPartialEq for SendError<T>

ยง

impl<T> StructuralPartialEq for SendTimeoutError<T>

ยง

impl<T> StructuralPartialEq for SetError<T>

ยง

impl<T> StructuralPartialEq for TrySendError<T>

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>