kvarn_async::prelude::compact_str::core::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ยง

1.7.0 ยท sourceยง

impl StructuralPartialEq for IpAddr

1.0.0 ยท sourceยง

impl StructuralPartialEq for SocketAddr

1.28.0 ยท sourceยง

impl StructuralPartialEq for kvarn_async::prelude::fmt::Alignment

1.0.0 ยท sourceยง

impl StructuralPartialEq for ErrorKind

1.0.0 ยท sourceยง

impl StructuralPartialEq for SeekFrom

sourceยง

impl StructuralPartialEq for Ipv6MulticastScope

1.0.0 ยท sourceยง

impl StructuralPartialEq for Shutdown

sourceยง

impl StructuralPartialEq for CacheControlError

sourceยง

impl StructuralPartialEq for RequestParseStage

sourceยง

impl StructuralPartialEq for SanitizeError

ยง

impl StructuralPartialEq for ToCompactStringError

sourceยง

impl StructuralPartialEq for AsciiChar

1.0.0 ยท sourceยง

impl StructuralPartialEq for kvarn_async::prelude::compact_str::core::cmp::Ordering

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 kvarn_async::prelude::compact_str::core::sync::atomic::Ordering

sourceยง

impl StructuralPartialEq for TryReserveErrorKind

1.65.0 ยท sourceยง

impl StructuralPartialEq for BacktraceStatus

1.0.0 ยท sourceยง

impl StructuralPartialEq for VarError

sourceยง

impl StructuralPartialEq for BacktraceStyle

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 Level

sourceยง

impl StructuralPartialEq for LevelFilter

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 Error

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

sourceยง

impl StructuralPartialEq for CriticalRequestComponents

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseBoolError

1.0.0 ยท sourceยง

impl StructuralPartialEq for Utf8Error

1.3.0 ยท sourceยง

impl StructuralPartialEq for Duration

ยง

impl StructuralPartialEq for HeaderName

1.8.0 ยท sourceยง

impl StructuralPartialEq for kvarn_async::prelude::Instant

ยง

impl StructuralPartialEq for Method

ยง

impl StructuralPartialEq for StatusCode

ยง

impl StructuralPartialEq for Version

ยง

impl StructuralPartialEq for ReserveError

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.64.0 ยท sourceยง

impl StructuralPartialEq for CStr

1.69.0 ยท sourceยง

impl StructuralPartialEq for FromBytesUntilNulError

1.64.0 ยท sourceยง

impl StructuralPartialEq for FromBytesWithNulError

sourceยง

impl StructuralPartialEq for Assume

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseFloatError

1.0.0 ยท sourceยง

impl StructuralPartialEq for ParseIntError

1.34.0 ยท sourceยง

impl StructuralPartialEq for TryFromIntError

sourceยง

impl StructuralPartialEq for kvarn_async::prelude::compact_str::core::ptr::Alignment

1.0.0 ยท sourceยง

impl StructuralPartialEq for RangeFull

1.36.0 ยท sourceยง

impl StructuralPartialEq for RawWaker

1.36.0 ยท sourceยง

impl StructuralPartialEq for RawWakerVTable

1.66.0 ยท sourceยง

impl StructuralPartialEq for TryFromFloatSecsError

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 FromUtf8Error

1.0.0 ยท sourceยง

impl StructuralPartialEq for String

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 SystemTime

sourceยง

impl StructuralPartialEq for ParseLevelError

1.33.0 ยท sourceยง

impl StructuralPartialEq for PhantomPinned

ยง

impl StructuralPartialEq for Domain

ยง

impl StructuralPartialEq for Elapsed

ยง

impl StructuralPartialEq for FilterOp

ยง

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 Token

ยง

impl StructuralPartialEq for TryAcquireError

ยง

impl StructuralPartialEq for TryRecvError

ยง

impl StructuralPartialEq for TryRecvError

ยง

impl StructuralPartialEq for TryRecvError

ยง

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 Query<'a>

sourceยง

impl<'a> StructuralPartialEq for QueryPair<'a>

sourceยง

impl<'a> StructuralPartialEq for ValueQualitySet<'a>

1.79.0 ยท sourceยง

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

1.10.0 ยท sourceยง

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

sourceยง

impl<'a> StructuralPartialEq for Metadata<'a>

sourceยง

impl<'a> StructuralPartialEq for MetadataBuilder<'a>

1.55.0 ยท sourceยง

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

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::legacy::Range<Idx>

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::legacy::RangeFrom<Idx>

1.26.0 ยท sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::legacy::RangeInclusive<Idx>

sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::Range<Idx>

sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::RangeFrom<Idx>

sourceยง

impl<Idx> StructuralPartialEq for kvarn_async::prelude::compact_str::core::range::RangeInclusive<Idx>

1.0.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeTo<Idx>

1.26.0 ยท sourceยง

impl<Idx> StructuralPartialEq for RangeToInclusive<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 &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.0.0 ยท sourceยง

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

1.0.0 ยท sourceยง

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

sourceยง

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

ยง

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>