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.

Constants are only allowed as patterns if (a) their type implements PartialEq, and (b) interpreting the value of the constant as a pattern is equialent 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ยง

Sourceยง

impl StructuralPartialEq for AhoCorasickKind

Sourceยง

impl StructuralPartialEq for aho_corasick::packed::api::MatchKind

Sourceยง

impl StructuralPartialEq for aho_corasick::util::error::MatchErrorKind

Sourceยง

impl StructuralPartialEq for aho_corasick::util::search::Anchored

Sourceยง

impl StructuralPartialEq for aho_corasick::util::search::MatchKind

Sourceยง

impl StructuralPartialEq for StartKind

Sourceยง

impl StructuralPartialEq for crossbeam_channel::err::RecvTimeoutError

Sourceยง

impl StructuralPartialEq for crossbeam_channel::err::TryRecvError

Sourceยง

impl StructuralPartialEq for BernoulliError

Sourceยง

impl StructuralPartialEq for rand::distr::uniform::Error

Sourceยง

impl StructuralPartialEq for rand::distr::weighted::Error

Sourceยง

impl StructuralPartialEq for regex::error::Error

Sourceยง

impl StructuralPartialEq for State

Sourceยง

impl StructuralPartialEq for regex_automata::util::look::Look

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::Anchored

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::MatchErrorKind

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::MatchKind

Sourceยง

impl StructuralPartialEq for AssertionKind

Sourceยง

impl StructuralPartialEq for Ast

Sourceยง

impl StructuralPartialEq for ClassAsciiKind

Sourceยง

impl StructuralPartialEq for ClassPerlKind

Sourceยง

impl StructuralPartialEq for ClassSet

Sourceยง

impl StructuralPartialEq for ClassSetBinaryOpKind

Sourceยง

impl StructuralPartialEq for ClassSetItem

Sourceยง

impl StructuralPartialEq for ClassUnicodeKind

Sourceยง

impl StructuralPartialEq for ClassUnicodeOpKind

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::ErrorKind

Sourceยง

impl StructuralPartialEq for Flag

Sourceยง

impl StructuralPartialEq for FlagsItemKind

Sourceยง

impl StructuralPartialEq for GroupKind

Sourceยง

impl StructuralPartialEq for HexLiteralKind

Sourceยง

impl StructuralPartialEq for LiteralKind

Sourceยง

impl StructuralPartialEq for RepetitionKind

Sourceยง

impl StructuralPartialEq for RepetitionRange

Sourceยง

impl StructuralPartialEq for SpecialLiteralKind

Sourceยง

impl StructuralPartialEq for regex_syntax::error::Error

Sourceยง

impl StructuralPartialEq for Class

Sourceยง

impl StructuralPartialEq for Dot

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::ErrorKind

Sourceยง

impl StructuralPartialEq for HirKind

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::Look

Sourceยง

impl StructuralPartialEq for Utf8Sequence

Sourceยง

impl StructuralPartialEq for zerocopy::byteorder::BigEndian

Sourceยง

impl StructuralPartialEq for zerocopy::byteorder::LittleEndian

Sourceยง

impl StructuralPartialEq for AsciiChar

1.65.0 ยท Sourceยง

impl StructuralPartialEq for BacktraceStatus

1.0.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::cmp::Ordering

Sourceยง

impl StructuralPartialEq for TryReserveErrorKind

1.0.0 ยท Sourceยง

impl StructuralPartialEq for VarError

1.64.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesWithNulError

1.28.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::fmt::Alignment

Sourceยง

impl StructuralPartialEq for DebugAsHex

Sourceยง

impl StructuralPartialEq for Sign

1.0.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::io::ErrorKind

1.0.0 ยท Sourceยง

impl StructuralPartialEq for SeekFrom

1.7.0 ยท Sourceยง

impl StructuralPartialEq for IpAddr

Sourceยง

impl StructuralPartialEq for Ipv6MulticastScope

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Shutdown

1.0.0 ยท Sourceยง

impl StructuralPartialEq for SocketAddr

1.0.0 ยท Sourceยง

impl StructuralPartialEq for FpCategory

1.55.0 ยท Sourceยง

impl StructuralPartialEq for IntErrorKind

Sourceยง

impl StructuralPartialEq for BacktraceStyle

1.86.0 ยท Sourceยง

impl StructuralPartialEq for GetDisjointMutError

Sourceยง

impl StructuralPartialEq for SearchStep

1.0.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::sync::atomic::Ordering

1.12.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::sync::mpmc::RecvTimeoutError

1.0.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::sync::mpmc::TryRecvError

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 aho_corasick::util::error::MatchError

Sourceยง

impl StructuralPartialEq for aho_corasick::util::primitives::PatternID

Sourceยง

impl StructuralPartialEq for aho_corasick::util::primitives::PatternIDError

Sourceยง

impl StructuralPartialEq for aho_corasick::util::primitives::StateID

Sourceยง

impl StructuralPartialEq for aho_corasick::util::primitives::StateIDError

Sourceยง

impl StructuralPartialEq for aho_corasick::util::search::Match

Sourceยง

impl StructuralPartialEq for aho_corasick::util::search::Span

Sourceยง

impl StructuralPartialEq for ReadyTimeoutError

Sourceยง

impl StructuralPartialEq for crossbeam_channel::err::RecvError

Sourceยง

impl StructuralPartialEq for SelectTimeoutError

Sourceยง

impl StructuralPartialEq for TryReadyError

Sourceยง

impl StructuralPartialEq for TrySelectError

Sourceยง

impl StructuralPartialEq for getrandom::error::Error

Sourceยง

impl StructuralPartialEq for Bernoulli

Sourceยง

impl StructuralPartialEq for UniformUsize

Sourceยง

impl StructuralPartialEq for UniformChar

Sourceยง

impl StructuralPartialEq for UniformDuration

Sourceยง

impl StructuralPartialEq for StepRng

Sourceยง

impl StructuralPartialEq for SmallRng

Sourceยง

impl StructuralPartialEq for StdRng

Sourceยง

impl StructuralPartialEq for ChaCha8Core

Sourceยง

impl StructuralPartialEq for ChaCha12Core

Sourceยง

impl StructuralPartialEq for ChaCha20Core

Sourceยง

impl StructuralPartialEq for OsError

Sourceยง

impl StructuralPartialEq for OverlappingState

Sourceยง

impl StructuralPartialEq for LazyStateID

Sourceยง

impl StructuralPartialEq for DenseTransitions

Sourceยง

impl StructuralPartialEq for SparseTransitions

Sourceยง

impl StructuralPartialEq for Transition

Sourceยง

impl StructuralPartialEq for Unit

Sourceยง

impl StructuralPartialEq for regex_automata::util::look::LookSet

Sourceยง

impl StructuralPartialEq for NonMaxUsize

Sourceยง

impl StructuralPartialEq for regex_automata::util::primitives::PatternID

Sourceยง

impl StructuralPartialEq for regex_automata::util::primitives::PatternIDError

Sourceยง

impl StructuralPartialEq for SmallIndex

Sourceยง

impl StructuralPartialEq for SmallIndexError

Sourceยง

impl StructuralPartialEq for regex_automata::util::primitives::StateID

Sourceยง

impl StructuralPartialEq for regex_automata::util::primitives::StateIDError

Sourceยง

impl StructuralPartialEq for HalfMatch

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::Match

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::MatchError

Sourceยง

impl StructuralPartialEq for PatternSet

Sourceยง

impl StructuralPartialEq for regex_automata::util::search::Span

Sourceยง

impl StructuralPartialEq for Alternation

Sourceยง

impl StructuralPartialEq for Assertion

Sourceยง

impl StructuralPartialEq for CaptureName

Sourceยง

impl StructuralPartialEq for ClassAscii

Sourceยง

impl StructuralPartialEq for ClassBracketed

Sourceยง

impl StructuralPartialEq for ClassPerl

Sourceยง

impl StructuralPartialEq for ClassSetBinaryOp

Sourceยง

impl StructuralPartialEq for ClassSetRange

Sourceยง

impl StructuralPartialEq for ClassSetUnion

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::ClassUnicode

Sourceยง

impl StructuralPartialEq for Comment

Sourceยง

impl StructuralPartialEq for Concat

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::Error

Sourceยง

impl StructuralPartialEq for Flags

Sourceยง

impl StructuralPartialEq for FlagsItem

Sourceยง

impl StructuralPartialEq for Group

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::Literal

Sourceยง

impl StructuralPartialEq for Position

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::Repetition

Sourceยง

impl StructuralPartialEq for RepetitionOp

Sourceยง

impl StructuralPartialEq for SetFlags

Sourceยง

impl StructuralPartialEq for regex_syntax::ast::Span

Sourceยง

impl StructuralPartialEq for WithComments

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::literal::Literal

Sourceยง

impl StructuralPartialEq for Seq

Sourceยง

impl StructuralPartialEq for Capture

Sourceยง

impl StructuralPartialEq for ClassBytes

Sourceยง

impl StructuralPartialEq for ClassBytesRange

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::ClassUnicode

Sourceยง

impl StructuralPartialEq for ClassUnicodeRange

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::Error

Sourceยง

impl StructuralPartialEq for Hir

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::Literal

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::LookSet

Sourceยง

impl StructuralPartialEq for Properties

Sourceยง

impl StructuralPartialEq for regex_syntax::hir::Repetition

Sourceยง

impl StructuralPartialEq for Utf8Range

Sourceยง

impl StructuralPartialEq for zerocopy::error::AllocError

Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::alloc::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

Sourceยง

impl StructuralPartialEq for UnorderedKeyError

1.57.0 ยท Sourceยง

impl StructuralPartialEq for TryReserveError

1.64.0 ยท Sourceยง

impl StructuralPartialEq for CStr

1.64.0 ยท Sourceยง

impl StructuralPartialEq for CString

1.69.0 ยท Sourceยง

impl StructuralPartialEq for FromBytesUntilNulError

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 cs431_homework::test::loom::fmt::Error

Sourceยง

impl StructuralPartialEq for FormattingOptions

1.1.0 ยท Sourceยง

impl StructuralPartialEq for FileType

1.0.0 ยท Sourceยง

impl StructuralPartialEq for Permissions

Sourceยง

impl StructuralPartialEq for Assume

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

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

impl StructuralPartialEq for RangeFull

Sourceยง

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

Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::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

1.0.0 ยท Sourceยง

impl StructuralPartialEq for cs431_homework::test::loom::sync::mpmc::RecvError

1.5.0 ยท Sourceยง

impl StructuralPartialEq for WaitTimeoutResult

1.36.0 ยท Sourceยง

impl StructuralPartialEq for RawWaker

1.36.0 ยท Sourceยง

impl StructuralPartialEq for RawWakerVTable

1.26.0 ยท Sourceยง

impl StructuralPartialEq for AccessError

1.19.0 ยท Sourceยง

impl StructuralPartialEq for ThreadId

1.3.0 ยท Sourceยง

impl StructuralPartialEq for Duration

1.8.0 ยท Sourceยง

impl StructuralPartialEq for Instant

1.8.0 ยท Sourceยง

impl StructuralPartialEq for SystemTime

1.66.0 ยท Sourceยง

impl StructuralPartialEq for TryFromFloatSecsError

1.33.0 ยท Sourceยง

impl StructuralPartialEq for PhantomPinned

ยง

impl StructuralPartialEq for BigEndian

ยง

impl StructuralPartialEq for LittleEndian

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

1.10.0 ยท Sourceยง

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

1.79.0 ยท Sourceยง

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

Sourceยง

impl<'a> StructuralPartialEq for PhantomContravariantLifetime<'a>

Sourceยง

impl<'a> StructuralPartialEq for PhantomCovariantLifetime<'a>

Sourceยง

impl<'a> StructuralPartialEq for PhantomInvariantLifetime<'a>

Sourceยง

impl<'h> StructuralPartialEq for regex::regex::bytes::Match<'h>

Sourceยง

impl<'h> StructuralPartialEq for regex::regex::string::Match<'h>

Sourceยง

impl<'r, R> StructuralPartialEq for UnwrapMut<'r, R>
where R: TryRngCore + ?Sized,

Sourceยง

impl<A, S, V> StructuralPartialEq for ConvertError<A, S, V>

1.55.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for cs431_homework::test::loom::ops::Range<Idx>

1.0.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for cs431_homework::test::loom::ops::RangeFrom<Idx>

1.26.0 ยท Sourceยง

impl<Idx> StructuralPartialEq for cs431_homework::test::loom::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 cs431_homework::test::loom::range::Range<Idx>

Sourceยง

impl<Idx> StructuralPartialEq for cs431_homework::test::loom::range::RangeFrom<Idx>

Sourceยง

impl<Idx> StructuralPartialEq for cs431_homework::test::loom::range::RangeInclusive<Idx>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::F32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::F32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::F64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::F64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I16<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I16<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I128<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::I128<O>

Sourceยง

impl<O> StructuralPartialEq for Isize<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U16<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U16<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U32<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U64<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U128<O>

Sourceยง

impl<O> StructuralPartialEq for zerocopy::byteorder::U128<O>

Sourceยง

impl<O> StructuralPartialEq for Usize<O>

Sourceยง

impl<R> StructuralPartialEq for UnwrapErr<R>
where R: TryRngCore,

Sourceยง

impl<Src, Dst> StructuralPartialEq for AlignmentError<Src, Dst>
where Dst: ?Sized,

Sourceยง

impl<Src, Dst> StructuralPartialEq for SizeError<Src, Dst>
where Dst: ?Sized,

Sourceยง

impl<Src, Dst> StructuralPartialEq for ValidityError<Src, Dst>
where Dst: TryFromBytes + ?Sized,

Sourceยง

impl<T> StructuralPartialEq for crossbeam_channel::err::SendTimeoutError<T>

Sourceยง

impl<T> StructuralPartialEq for crossbeam_channel::err::TrySendError<T>

1.17.0 ยท Sourceยง

impl<T> StructuralPartialEq for Bound<T>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for Option<T>

Sourceยง

impl<T> StructuralPartialEq for cs431_homework::test::loom::sync::mpmc::SendTimeoutError<T>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for cs431_homework::test::loom::sync::mpmc::TrySendError<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.

Sourceยง

impl<T> StructuralPartialEq for crossbeam_channel::err::SendError<T>

Sourceยง

impl<T> StructuralPartialEq for CachePadded<T>

1.19.0 ยท Sourceยง

impl<T> StructuralPartialEq for Reverse<T>

1.0.0 ยท Sourceยง

impl<T> StructuralPartialEq for Cursor<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 cs431_homework::test::loom::sync::mpmc::SendError<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<X> StructuralPartialEq for UniformFloat<X>

Sourceยง

impl<X> StructuralPartialEq for UniformInt<X>

Sourceยง

impl<X> StructuralPartialEq for Uniform<X>
where X: SampleUniform,

Sourceยง

impl<X> StructuralPartialEq for WeightedIndex<X>

Sourceยง

impl<Y, R> StructuralPartialEq for CoroutineState<Y, R>