Trait uefi_std::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ยง

1.0.0 ยท sourceยง

impl StructuralPartialEq for uefi_std::cmp::Ordering

1.28.0 ยท sourceยง

impl StructuralPartialEq for uefi_std::fmt::Alignment

sourceยง

impl StructuralPartialEq for SearchStep

sourceยง

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

impl StructuralPartialEq for core::sync::atomic::Ordering

sourceยง

impl StructuralPartialEq for DevicePathAcpiType

sourceยง

impl StructuralPartialEq for DevicePathBbsType

sourceยง

impl StructuralPartialEq for DevicePathEndType

sourceยง

impl StructuralPartialEq for DevicePathHardwareType

sourceยง

impl StructuralPartialEq for DevicePathMediaType

sourceยง

impl StructuralPartialEq for DevicePathMessagingType

sourceยง

impl StructuralPartialEq for DevicePathType

sourceยง

impl StructuralPartialEq for GuidKind

sourceยง

impl StructuralPartialEq for IfrTypeKind

sourceยง

impl StructuralPartialEq for IfrTypeValueEnum

sourceยง

impl StructuralPartialEq for MemoryType

sourceยง

impl StructuralPartialEq for uefi::status::Error

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

impl StructuralPartialEq for uefi_std::fmt::Error

sourceยง

impl StructuralPartialEq for Assume

1.0.0 ยท sourceยง

impl StructuralPartialEq for RangeFull

sourceยง

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

impl StructuralPartialEq for String

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

impl StructuralPartialEq for Layout

1.50.0 ยท sourceยง

impl StructuralPartialEq for LayoutError

sourceยง

impl StructuralPartialEq for AllocError

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

sourceยง

impl StructuralPartialEq for Guid

sourceยง

impl StructuralPartialEq for HiiHandle

sourceยง

impl StructuralPartialEq for HiiDate

sourceยง

impl StructuralPartialEq for HiiRef

sourceยง

impl StructuralPartialEq for HiiTime

sourceยง

impl StructuralPartialEq for AnimationId

sourceยง

impl StructuralPartialEq for FontStyle

sourceยง

impl StructuralPartialEq for FormId

sourceยง

impl StructuralPartialEq for ImageId

sourceยง

impl StructuralPartialEq for QuestionId

sourceยง

impl StructuralPartialEq for StringId

sourceยง

impl StructuralPartialEq for VarStoreId

sourceยง

impl StructuralPartialEq for PhysicalAddress

sourceยง

impl StructuralPartialEq for VirtualAddress

sourceยง

impl StructuralPartialEq for Status

sourceยง

impl StructuralPartialEq for Event

sourceยง

impl StructuralPartialEq for Handle

sourceยง

impl StructuralPartialEq for Tpl

1.33.0 ยท sourceยง

impl StructuralPartialEq for PhantomPinned

1.79.0 ยท sourceยง

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

1.10.0 ยท sourceยง

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

1.55.0 ยท sourceยง

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

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>

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.

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>