pub trait StructuralPartialEq { }
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 equivalent 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ยง
impl StructuralPartialEq for AddressBech32DecodeError
impl StructuralPartialEq for AddressBech32EncodeError
impl StructuralPartialEq for AlwaysVisibleGlobalNodesVersion
impl StructuralPartialEq for ParseBlsPublicKeyError
impl StructuralPartialEq for ParseBlsSignatureError
impl StructuralPartialEq for ParseEd25519PublicKeyError
impl StructuralPartialEq for ParseEd25519SignatureError
impl StructuralPartialEq for ParseHashError
impl StructuralPartialEq for ParseSecp256k1PublicKeyError
impl StructuralPartialEq for ParseSecp256k1SignatureError
impl StructuralPartialEq for PublicKey
impl StructuralPartialEq for PublicKeyHash
impl StructuralPartialEq for ManifestCustomExtension
impl StructuralPartialEq for ManifestCustomTraversal
impl StructuralPartialEq for ManifestCustomValue
impl StructuralPartialEq for ManifestCustomValueKind
impl StructuralPartialEq for ManifestToRustValueError
impl StructuralPartialEq for RustToManifestValueError
impl StructuralPartialEq for AllowedIds
impl StructuralPartialEq for LowerBound
impl StructuralPartialEq for ManifestAddress
impl StructuralPartialEq for ManifestBucketBatch
impl StructuralPartialEq for ManifestComponentAddress
impl StructuralPartialEq for ManifestExpression
impl StructuralPartialEq for ManifestGlobalAddress
impl StructuralPartialEq for ManifestNonFungibleLocalId
impl StructuralPartialEq for ManifestNonFungibleLocalIdValidationError
impl StructuralPartialEq for ManifestPackageAddress
impl StructuralPartialEq for ManifestProofBatch
impl StructuralPartialEq for ManifestResourceAddress
impl StructuralPartialEq for ManifestResourceConstraint
impl StructuralPartialEq for ParseManifestAddressReservationError
impl StructuralPartialEq for ParseManifestBlobRefError
impl StructuralPartialEq for ParseManifestBucketError
impl StructuralPartialEq for ParseManifestDecimalError
impl StructuralPartialEq for ParseManifestExpressionError
impl StructuralPartialEq for ParseManifestPreciseDecimalError
impl StructuralPartialEq for ParseManifestProofError
impl StructuralPartialEq for ResourceConstraintError
impl StructuralPartialEq for ResourceConstraintsError
impl StructuralPartialEq for UpperBound
impl StructuralPartialEq for OwnValidation
impl StructuralPartialEq for ReferenceValidation
impl StructuralPartialEq for ScryptoCustomTraversal
impl StructuralPartialEq for ScryptoCustomTypeKind
impl StructuralPartialEq for ScryptoCustomTypeKindLabel
impl StructuralPartialEq for ScryptoCustomTypeValidation
impl StructuralPartialEq for ScryptoCustomValue
impl StructuralPartialEq for ScryptoCustomValueKind
impl StructuralPartialEq for ContentValidationError
impl StructuralPartialEq for NonFungibleIdType
impl StructuralPartialEq for NonFungibleLocalId
impl StructuralPartialEq for ParseNonFungibleLocalIdError
impl StructuralPartialEq for ParseOwnError
impl StructuralPartialEq for ParseReferenceError
impl StructuralPartialEq for ParseI192Error
impl StructuralPartialEq for ParseI256Error
impl StructuralPartialEq for ParseI320Error
impl StructuralPartialEq for ParseI384Error
impl StructuralPartialEq for ParseI448Error
impl StructuralPartialEq for ParseI512Error
impl StructuralPartialEq for ParseI768Error
impl StructuralPartialEq for ParseU192Error
impl StructuralPartialEq for ParseU256Error
impl StructuralPartialEq for ParseU320Error
impl StructuralPartialEq for ParseU384Error
impl StructuralPartialEq for ParseU448Error
impl StructuralPartialEq for ParseU512Error
impl StructuralPartialEq for ParseU768Error
impl StructuralPartialEq for ParseDecimalError
impl StructuralPartialEq for ParsePreciseDecimalError
impl StructuralPartialEq for RoundingMode
impl StructuralPartialEq for BatchPartitionStateUpdate
impl StructuralPartialEq for DatabaseUpdate
impl StructuralPartialEq for NodeStateUpdates
impl StructuralPartialEq for PartitionStateUpdates
impl StructuralPartialEq for TimeComparisonOperator
impl StructuralPartialEq for DateTimeError
impl StructuralPartialEq for EntityType
impl StructuralPartialEq for GenericSubstitution
impl StructuralPartialEq for GlobalCaller
impl StructuralPartialEq for ParseComponentAddressError
impl StructuralPartialEq for ParseGlobalAddressError
impl StructuralPartialEq for ParseInternalAddressError
impl StructuralPartialEq for ParseNonFungibleGlobalIdError
impl StructuralPartialEq for ParsePackageAddressError
impl StructuralPartialEq for ParseResourceAddressError
impl StructuralPartialEq for RoyaltyAmount
impl StructuralPartialEq for SubstateKey
impl StructuralPartialEq for ChildNames
impl StructuralPartialEq for DecodeError
impl StructuralPartialEq for EncodeError
impl StructuralPartialEq for LocalTypeId
impl StructuralPartialEq for NameChangeRule
impl StructuralPartialEq for NoCustomExtension
impl StructuralPartialEq for NoCustomSchema
impl StructuralPartialEq for NoCustomTerminalValueRef
impl StructuralPartialEq for NoCustomTraversal
impl StructuralPartialEq for NoCustomTypeKind
impl StructuralPartialEq for NoCustomTypeKindLabel
impl StructuralPartialEq for NoCustomTypeValidation
impl StructuralPartialEq for NoCustomValue
impl StructuralPartialEq for NoCustomValueKind
impl StructuralPartialEq for OwnedNameChange
impl StructuralPartialEq for RustTypeId
impl StructuralPartialEq for SchemaValidationError
impl StructuralPartialEq for ValidationChange
impl StructuralPartialEq for ValidationError
impl StructuralPartialEq for radix_common::prelude::fmt::Alignment
impl StructuralPartialEq for DebugAsHex
impl StructuralPartialEq for radix_common::prelude::fmt::Sign
impl StructuralPartialEq for radix_common::prelude::indexmap::GetDisjointMutError
impl StructuralPartialEq for MapEntryPart
impl StructuralPartialEq for radix_common::prelude::rust::cmp::Ordering
impl StructuralPartialEq for FpCategory
impl StructuralPartialEq for IntErrorKind
impl StructuralPartialEq for radix_common::prelude::rust::slice::GetDisjointMutError
impl StructuralPartialEq for SearchStep
impl StructuralPartialEq for radix_common::prelude::rust::sync::atomic::Ordering
impl StructuralPartialEq for RecvTimeoutError
impl StructuralPartialEq for TryRecvError
impl StructuralPartialEq for TryReserveErrorKind
impl StructuralPartialEq for AsciiChar
impl StructuralPartialEq for FromBytesWithNulError
impl StructuralPartialEq for AtomicOrdering
impl StructuralPartialEq for IpAddr
impl StructuralPartialEq for Ipv6MulticastScope
impl StructuralPartialEq for SocketAddr
impl StructuralPartialEq for BacktraceStatus
impl StructuralPartialEq for VarError
impl StructuralPartialEq for SeekFrom
impl StructuralPartialEq for ErrorKind
impl StructuralPartialEq for Shutdown
impl StructuralPartialEq for BacktraceStyle
impl StructuralPartialEq for bech32::Error
impl StructuralPartialEq for Variant
impl StructuralPartialEq for BLST_ERROR
impl StructuralPartialEq for hashbrown::TryReserveError
impl StructuralPartialEq for FromHexError
impl StructuralPartialEq for num_bigint::bigint::Sign
impl StructuralPartialEq for ParseError
impl StructuralPartialEq for bool
impl StructuralPartialEq for char
impl StructuralPartialEq for i8
impl StructuralPartialEq for i16
impl StructuralPartialEq for i32
impl StructuralPartialEq for i64
impl StructuralPartialEq for i128
impl StructuralPartialEq for isize
impl StructuralPartialEq for str
impl StructuralPartialEq for u8
impl StructuralPartialEq for u16
impl StructuralPartialEq for u32
impl StructuralPartialEq for u64
impl StructuralPartialEq for u128
impl StructuralPartialEq for ()
impl StructuralPartialEq for usize
impl StructuralPartialEq for Bls12381G1PublicKey
impl StructuralPartialEq for Bls12381G2Signature
impl StructuralPartialEq for Ed25519PublicKey
impl StructuralPartialEq for Ed25519PublicKeyHash
impl StructuralPartialEq for Ed25519Signature
impl StructuralPartialEq for Hash
impl StructuralPartialEq for Secp256k1PublicKey
impl StructuralPartialEq for Secp256k1PublicKeyHash
impl StructuralPartialEq for Secp256k1Signature
impl StructuralPartialEq for Secp256k1UncompressedPublicKey
impl StructuralPartialEq for GeneralResourceConstraint
impl StructuralPartialEq for ManifestAddressReservation
impl StructuralPartialEq for ManifestBlobRef
impl StructuralPartialEq for ManifestBucket
impl StructuralPartialEq for ManifestDecimal
impl StructuralPartialEq for ManifestNamedAddress
impl StructuralPartialEq for ManifestPreciseDecimal
impl StructuralPartialEq for ManifestProof
impl StructuralPartialEq for ManifestResourceConstraints
impl StructuralPartialEq for ManifestCustomTerminalValueRef
impl StructuralPartialEq for BytesNonFungibleLocalId
impl StructuralPartialEq for IntegerNonFungibleLocalId
impl StructuralPartialEq for Own
impl StructuralPartialEq for RUIDNonFungibleLocalId
impl StructuralPartialEq for Reference
impl StructuralPartialEq for StringNonFungibleLocalId
impl StructuralPartialEq for ScryptoCustomExtension
impl StructuralPartialEq for ScryptoCustomSchema
impl StructuralPartialEq for ScryptoCustomTerminalValueRef
impl StructuralPartialEq for I192
impl StructuralPartialEq for I256
impl StructuralPartialEq for I320
impl StructuralPartialEq for I384
impl StructuralPartialEq for I448
impl StructuralPartialEq for I512
impl StructuralPartialEq for I768
impl StructuralPartialEq for U192
impl StructuralPartialEq for U256
impl StructuralPartialEq for U320
impl StructuralPartialEq for U384
impl StructuralPartialEq for U448
impl StructuralPartialEq for U512
impl StructuralPartialEq for U768
impl StructuralPartialEq for Decimal
impl StructuralPartialEq for PreciseDecimal
impl StructuralPartialEq for NetworkDefinition
impl StructuralPartialEq for StateUpdates
impl StructuralPartialEq for radix_common::time::instant::Instant
impl StructuralPartialEq for UtcDateTime
impl StructuralPartialEq for BlueprintId
impl StructuralPartialEq for BlueprintTypeIdentifier
impl StructuralPartialEq for ComponentAddress
impl StructuralPartialEq for Epoch
impl StructuralPartialEq for GlobalAddress
impl StructuralPartialEq for GlobalAddressReservation
impl StructuralPartialEq for InternalAddress
impl StructuralPartialEq for NodeId
impl StructuralPartialEq for NonFungibleGlobalId
impl StructuralPartialEq for PackageAddress
impl StructuralPartialEq for PartitionNumber
impl StructuralPartialEq for PartitionOffset
impl StructuralPartialEq for ResourceAddress
impl StructuralPartialEq for Round
impl StructuralPartialEq for SchemaHash
impl StructuralPartialEq for ScopedTypeId
impl StructuralPartialEq for UnorderedKeyError
impl StructuralPartialEq for radix_common::prelude::fmt::Error
impl StructuralPartialEq for FormattingOptions
impl StructuralPartialEq for radix_common::prelude::indexmap::TryReserveError
impl StructuralPartialEq for Assume
impl StructuralPartialEq for LengthValidation
impl StructuralPartialEq for NameChangeError
impl StructuralPartialEq for NovelTypeMetadata
impl StructuralPartialEq for SborPath
impl StructuralPartialEq for SborPathBuf
impl StructuralPartialEq for SchemaComparisonCompletenessSettings
impl StructuralPartialEq for SchemaComparisonMetadataSettings
impl StructuralPartialEq for SchemaComparisonSettings
impl StructuralPartialEq for SchemaComparisonStructureSettings
impl StructuralPartialEq for SchemaComparisonValidationSettings
impl StructuralPartialEq for String
impl StructuralPartialEq for TypeMetadata
impl StructuralPartialEq for WellKnownTypeId
impl StructuralPartialEq for EnumVariantHeader
impl StructuralPartialEq for TupleHeader
impl StructuralPartialEq for AllocError
impl StructuralPartialEq for Layout
impl StructuralPartialEq for LayoutError
impl StructuralPartialEq for ParseFloatError
impl StructuralPartialEq for radix_common::prelude::rust::num::ParseIntError
impl StructuralPartialEq for radix_common::prelude::rust::num::TryFromIntError
impl StructuralPartialEq for RangeFull
impl StructuralPartialEq for radix_common::prelude::rust::ptr::Alignment
impl StructuralPartialEq for ParseBoolError
impl StructuralPartialEq for Utf8Error
impl StructuralPartialEq for FromUtf8Error
impl StructuralPartialEq for RecvError
impl StructuralPartialEq for WaitTimeoutResult
impl StructuralPartialEq for alloc::collections::TryReserveError
impl StructuralPartialEq for CString
impl StructuralPartialEq for FromVecWithNulError
impl StructuralPartialEq for IntoStringError
impl StructuralPartialEq for NulError
impl StructuralPartialEq for CharTryFromError
impl StructuralPartialEq for ParseCharError
impl StructuralPartialEq for DecodeUtf16Error
impl StructuralPartialEq for TryFromCharError
impl StructuralPartialEq for CpuidResult
impl StructuralPartialEq for CStr
impl StructuralPartialEq for FromBytesUntilNulError
impl StructuralPartialEq for Ipv4Addr
impl StructuralPartialEq for Ipv6Addr
impl StructuralPartialEq for AddrParseError
impl StructuralPartialEq for SocketAddrV4
impl StructuralPartialEq for SocketAddrV6
impl StructuralPartialEq for RawWaker
impl StructuralPartialEq for RawWakerVTable
impl StructuralPartialEq for Duration
impl StructuralPartialEq for TryFromFloatSecsError
impl StructuralPartialEq for FileType
impl StructuralPartialEq for Permissions
impl StructuralPartialEq for UCred
impl StructuralPartialEq for NormalizeError
impl StructuralPartialEq for StripPrefixError
impl StructuralPartialEq for ExitCode
impl StructuralPartialEq for ExitStatus
impl StructuralPartialEq for ExitStatusError
impl StructuralPartialEq for Output
impl StructuralPartialEq for AccessError
impl StructuralPartialEq for ThreadId
impl StructuralPartialEq for std::time::Instant
impl StructuralPartialEq for SystemTime
impl StructuralPartialEq for u5
impl StructuralPartialEq for block_buffer::Error
impl StructuralPartialEq for blst_fp2
impl StructuralPartialEq for blst_fp6
impl StructuralPartialEq for blst_fp
impl StructuralPartialEq for blst_fr
impl StructuralPartialEq for blst_scalar
impl StructuralPartialEq for bnum::errors::parseint::ParseIntError
impl StructuralPartialEq for bnum::errors::tryfrom::TryFromIntError
impl StructuralPartialEq for InvalidLength
impl StructuralPartialEq for CompressedEdwardsY
impl StructuralPartialEq for CompressedRistretto
impl StructuralPartialEq for MacError
impl StructuralPartialEq for InvalidBufferSize
impl StructuralPartialEq for Signature
impl StructuralPartialEq for ParseBigIntError
impl StructuralPartialEq for ATerm
impl StructuralPartialEq for B0
impl StructuralPartialEq for B1
impl StructuralPartialEq for Z0
impl StructuralPartialEq for Equal
impl StructuralPartialEq for Greater
impl StructuralPartialEq for Less
impl StructuralPartialEq for UTerm
impl StructuralPartialEq for PhantomPinned
impl<'a> StructuralPartialEq for SubstateKeyRef<'a>
impl<'a> StructuralPartialEq for Utf8Pattern<'a>
impl<'a> StructuralPartialEq for Component<'a>
impl<'a> StructuralPartialEq for Prefix<'a>
impl<'a> StructuralPartialEq for Utf8Chunk<'a>
impl<'a> StructuralPartialEq for core::panic::location::Location<'a>
impl<'a> StructuralPartialEq for PhantomContravariantLifetime<'a>
impl<'a> StructuralPartialEq for PhantomCovariantLifetime<'a>
impl<'a> StructuralPartialEq for PhantomInvariantLifetime<'a>
impl<'de> StructuralPartialEq for TerminalValueBatchRef<'de>
impl<'de, E> StructuralPartialEq for TypedTraversalEvent<'de, E>where
E: CustomExtension,
impl<'de, T> StructuralPartialEq for TerminalValueRef<'de, T>where
T: CustomTraversal,
impl<'de, T> StructuralPartialEq for TraversalEvent<'de, T>where
T: CustomTraversal,
impl<'s> StructuralPartialEq for ContainerType<'s>
impl<'s, E> StructuralPartialEq for LocatedValidationError<'s, E>where
E: CustomExtension,
impl<'s, E> StructuralPartialEq for FullLocation<'s, E>where
E: CustomExtension,
impl<'t, 'de, T> StructuralPartialEq for LocatedTraversalEvent<'t, 'de, T>where
T: CustomTraversal,
impl<'t, 's, 'de, E> StructuralPartialEq for TypedLocatedTraversalEvent<'t, 's, 'de, E>where
E: CustomExtension,
impl<'t, 's, T> StructuralPartialEq for TypedLocation<'t, 's, T>where
T: CustomTraversal,
impl<'t, T> StructuralPartialEq for radix_common::prelude::traversal::Location<'t, T>where
T: CustomTraversal,
impl<A> StructuralPartialEq for ExtendedGcd<A>
impl<B, C> StructuralPartialEq for ControlFlow<B, C>
impl<C, L> StructuralPartialEq for TypeData<C, L>where
C: CustomTypeKind<L>,
L: SchemaTypeLink,
impl<E> StructuralPartialEq for PayloadValidationError<E>where
E: CustomExtension,
impl<E> StructuralPartialEq for TypeValidation<E>where
E: CustomTypeValidation,
impl<E> StructuralPartialEq for TypeMismatchError<E>where
E: CustomExtension,
impl<E> StructuralPartialEq for TypedTraversalError<E>where
E: CustomExtension,
impl<E> StructuralPartialEq for CurrentValueInfo<E>where
E: CustomExtension,
impl<Idx> StructuralPartialEq for radix_common::prelude::rust::ops::Range<Idx>
impl<Idx> StructuralPartialEq for radix_common::prelude::rust::ops::RangeFrom<Idx>
impl<Idx> StructuralPartialEq for radix_common::prelude::rust::ops::RangeInclusive<Idx>
impl<Idx> StructuralPartialEq for RangeTo<Idx>
impl<Idx> StructuralPartialEq for RangeToInclusive<Idx>
impl<Idx> StructuralPartialEq for core::range::Range<Idx>
impl<Idx> StructuralPartialEq for core::range::RangeFrom<Idx>
impl<Idx> StructuralPartialEq for core::range::RangeInclusive<Idx>
impl<K, V, S> StructuralPartialEq for NonIterMap<K, V, S>
impl<S> StructuralPartialEq for SchemaComparisonErrorDetail<S>where
S: CustomSchema,
impl<S> StructuralPartialEq for SchemaVersions<S>where
S: CustomSchema,
impl<S> StructuralPartialEq for SchemaComparisonError<S>where
S: CustomSchema,
impl<S> StructuralPartialEq for SchemaV1<S>where
S: CustomSchema,
impl<S> StructuralPartialEq for VersionedSchema<S>where
S: CustomSchema,
impl<T> StructuralPartialEq for Option<T>
impl<T> StructuralPartialEq for TypeKindLabel<T>where
T: CustomTypeKindLabel,
impl<T> StructuralPartialEq for ContainerHeader<T>where
T: CustomTraversal,
impl<T> StructuralPartialEq for Bound<T>
impl<T> StructuralPartialEq for SendTimeoutError<T>
impl<T> StructuralPartialEq for TrySendError<T>
impl<T> StructuralPartialEq for Poll<T>
impl<T> StructuralPartialEq for &Twhere
T: ?Sized,
impl<T> StructuralPartialEq for [T]
impl<T> StructuralPartialEq for (Tโ, Tโ, โฆ, Tโ)
This trait is implemented for tuples up to twelve items long.