[][src]Trait sgx_tstd::marker::StructuralPartialEq

#[lang = "structural_peq"]pub trait StructuralPartialEq { }
🔬 This is a nightly-only experimental API. (structural_match)

Required trait for constants used in pattern matches.

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

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 attribute-based design to this trait.

Implementations on Foreign Types

impl<'a> StructuralPartialEq for Utf8LossyChunk<'a>[src]

impl StructuralPartialEq for CpuidResult[src]

impl StructuralPartialEq for IntErrorKind[src]

impl StructuralPartialEq for CollectionAllocErr[src]

impl StructuralPartialEq for _Unwind_Reason_Code[src]

impl StructuralPartialEq for _Unwind_Action[src]

impl StructuralPartialEq for RsrvMemAllocErr[src]

impl StructuralPartialEq for ProtectAttr[src]

impl StructuralPartialEq for AlignReq[src]

impl StructuralPartialEq for AlighAllocErr[src]

impl StructuralPartialEq for AlignLayoutErr[src]

impl StructuralPartialEq for sgx_ql_qv_result_t[src]

impl StructuralPartialEq for sgx_ql_path_type_t[src]

impl StructuralPartialEq for sgx_qv_path_type_t[src]

impl StructuralPartialEq for sgx_uswitchless_worker_type_t[src]

impl StructuralPartialEq for sgx_device_status_t[src]

impl StructuralPartialEq for sgx_quote3_error_t[src]

impl StructuralPartialEq for sgx_ql_config_version_t[src]

impl StructuralPartialEq for dir_index_t[src]

impl StructuralPartialEq for sgx_ra_key_type_t[src]

impl StructuralPartialEq for sgx_pce_error_t[src]

impl StructuralPartialEq for sgx_uswitchless_worker_event_t[src]

impl StructuralPartialEq for sgx_ql_request_policy_t[src]

impl StructuralPartialEq for sgx_qcnl_error_t[src]

impl StructuralPartialEq for sgx_dh_session_role_t[src]

impl StructuralPartialEq for sgx_rsa_key_type_t[src]

impl StructuralPartialEq for sgx_exception_vector_t[src]

impl StructuralPartialEq for sgx_ql_cert_key_type_t[src]

impl StructuralPartialEq for sgx_status_t[src]

impl StructuralPartialEq for sgx_exception_type_t[src]

impl StructuralPartialEq for sgx_rsa_result_t[src]

impl StructuralPartialEq for sgx_ql_attestation_algorithm_id_t[src]

impl StructuralPartialEq for sgx_quote_sign_type_t[src]

impl StructuralPartialEq for sgx_generic_ecresult_t[src]

impl StructuralPartialEq for Feature[src]

impl StructuralPartialEq for SeekFrom[src]

Loading content...

Implementors

impl StructuralPartialEq for AllocInit[src]

impl StructuralPartialEq for ReallocPlacement[src]

impl StructuralPartialEq for sgx_tstd::cmp::Ordering[src]

impl StructuralPartialEq for TryReserveError[src]

impl StructuralPartialEq for SgxThreadPolicy[src]

impl StructuralPartialEq for VarError[src]

impl StructuralPartialEq for ErrorKind[src]

impl StructuralPartialEq for sgx_tstd::io::SeekFrom[src]

impl StructuralPartialEq for IpAddr[src]

impl StructuralPartialEq for Ipv6MulticastScope[src]

impl StructuralPartialEq for Shutdown[src]

impl StructuralPartialEq for SocketAddr[src]

impl StructuralPartialEq for FpCategory[src]

impl StructuralPartialEq for SearchStep[src]

impl StructuralPartialEq for sgx_tstd::sync::atomic::Ordering[src]

impl StructuralPartialEq for AllocErr[src]

impl StructuralPartialEq for Layout[src]

impl StructuralPartialEq for LayoutErr[src]

impl StructuralPartialEq for TypeId[src]

impl StructuralPartialEq for CharTryFromError[src]

impl StructuralPartialEq for DecodeUtf16Error[src]

impl StructuralPartialEq for ParseCharError[src]

impl StructuralPartialEq for UnicodeVersion[src]

impl StructuralPartialEq for CString[src]

impl StructuralPartialEq for FromBytesWithNulError[src]

impl StructuralPartialEq for IntoStringError[src]

impl StructuralPartialEq for NulError[src]

impl StructuralPartialEq for Error[src]

impl StructuralPartialEq for PhantomPinned[src]

impl StructuralPartialEq for AddrParseError[src]

impl StructuralPartialEq for NonZeroI128[src]

impl StructuralPartialEq for NonZeroI16[src]

impl StructuralPartialEq for NonZeroI32[src]

impl StructuralPartialEq for NonZeroI64[src]

impl StructuralPartialEq for NonZeroI8[src]

impl StructuralPartialEq for NonZeroIsize[src]

impl StructuralPartialEq for NonZeroU128[src]

impl StructuralPartialEq for NonZeroU16[src]

impl StructuralPartialEq for NonZeroU32[src]

impl StructuralPartialEq for NonZeroU64[src]

impl StructuralPartialEq for NonZeroU8[src]

impl StructuralPartialEq for NonZeroUsize[src]

impl StructuralPartialEq for ParseFloatError[src]

impl StructuralPartialEq for ParseIntError[src]

impl StructuralPartialEq for TryFromIntError[src]

impl StructuralPartialEq for RangeFull[src]

impl StructuralPartialEq for NoneError[src]

impl StructuralPartialEq for StripPrefixError[src]

impl StructuralPartialEq for ParseBoolError[src]

impl StructuralPartialEq for Utf8Error[src]

impl StructuralPartialEq for FromUtf8Error[src]

impl StructuralPartialEq for WaitTimeoutResult[src]

impl StructuralPartialEq for RawWaker[src]

impl StructuralPartialEq for RawWakerVTable[src]

impl StructuralPartialEq for ThreadId[src]

impl StructuralPartialEq for Duration[src]

impl StructuralPartialEq for Instant[src]

impl StructuralPartialEq for SystemTime[src]

impl StructuralPartialEq for FileType[src]

impl StructuralPartialEq for Permissions[src]

impl<'a> StructuralPartialEq for Component<'a>[src]

impl<'a> StructuralPartialEq for Prefix<'a>[src]

impl<Idx> StructuralPartialEq for Range<Idx>[src]

impl<Idx> StructuralPartialEq for RangeFrom<Idx>[src]

impl<Idx> StructuralPartialEq for RangeInclusive<Idx>[src]

impl<Idx> StructuralPartialEq for RangeTo<Idx>[src]

impl<Idx> StructuralPartialEq for RangeToInclusive<Idx>[src]

impl<T> StructuralPartialEq for Bound<T>[src]

impl<T> StructuralPartialEq for Option<T>[src]

impl<T> StructuralPartialEq for Poll<T>[src]

impl<T> StructuralPartialEq for Reverse<T>[src]

impl<T> StructuralPartialEq for BTreeSet<T>[src]

impl<T> StructuralPartialEq for Cursor<T>[src]

impl<T> StructuralPartialEq for PhantomData<T> where
    T: ?Sized
[src]

impl<T> StructuralPartialEq for ManuallyDrop<T> where
    T: ?Sized
[src]

impl<T> StructuralPartialEq for Wrapping<T>[src]

impl<T, E> StructuralPartialEq for Result<T, E>[src]

impl<Y, R> StructuralPartialEq for GeneratorState<Y, R>[src]

Loading content...