pub trait PartialEq<Rhs = Self>where
Rhs: ?Sized,{
// Required method
fn eq(&self, other: &Rhs) -> bool;
// Provided method
fn ne(&self, other: &Rhs) -> bool { ... }
}
mtls
only.Expand description
Trait for comparisons using the equality operator.
Implementing this trait for types provides the ==
and !=
operators for
those types.
x.eq(y)
can also be written x == y
, and x.ne(y)
can be written x != y
.
We use the easier-to-read infix notation in the remainder of this documentation.
This trait allows for comparisons using the equality operator, for types
that do not have a full equivalence relation. For example, in floating point
numbers NaN != NaN
, so floating point types implement PartialEq
but not
Eq
. Formally speaking, when Rhs == Self
, this trait corresponds
to a partial equivalence relation.
Implementations must ensure that eq
and ne
are consistent with each other:
a != b
if and only if!(a == b)
.
The default implementation of ne
provides this consistency and is almost
always sufficient. It should not be overridden without very good reason.
If PartialOrd
or Ord
are also implemented for Self
and Rhs
, their methods must also
be consistent with PartialEq
(see the documentation of those traits for the exact
requirements). It’s easy to accidentally make them disagree by deriving some of the traits and
manually implementing others.
The equality relation ==
must satisfy the following conditions
(for all a
, b
, c
of type A
, B
, C
):
-
Symmetry: if
A: PartialEq<B>
andB: PartialEq<A>
, thena == b
impliesb == a
; and -
Transitivity: if
A: PartialEq<B>
andB: PartialEq<C>
andA: PartialEq<C>
, thena == b
andb == c
impliesa == c
. This must also work for longer chains, such as whenA: PartialEq<B>
,B: PartialEq<C>
,C: PartialEq<D>
, andA: PartialEq<D>
all exist.
Note that the B: PartialEq<A>
(symmetric) and A: PartialEq<C>
(transitive) impls are not forced to exist, but these requirements apply
whenever they do exist.
Violating these requirements is a logic error. The behavior resulting from a logic error is not
specified, but users of the trait must ensure that such logic errors do not result in
undefined behavior. This means that unsafe
code must not rely on the correctness of these
methods.
§Cross-crate considerations
Upholding the requirements stated above can become tricky when one crate implements PartialEq
for a type of another crate (i.e., to allow comparing one of its own types with a type from the
standard library). The recommendation is to never implement this trait for a foreign type. In
other words, such a crate should do impl PartialEq<ForeignType> for LocalType
, but it should
not do impl PartialEq<LocalType> for ForeignType
.
This avoids the problem of transitive chains that criss-cross crate boundaries: for all local
types T
, you may assume that no other crate will add impl
s that allow comparing T == U
. In
other words, if other crates add impl
s that allow building longer transitive chains U1 == ... == T == V1 == ...
, then all the types that appear to the right of T
must be types that the
crate defining T
already knows about. This rules out transitive chains where downstream crates
can add new impl
s that “stitch together” comparisons of foreign types in ways that violate
transitivity.
Not having such foreign impl
s also avoids forward compatibility issues where one crate adding
more PartialEq
implementations can cause build failures in downstream crates.
§Derivable
This trait can be used with #[derive]
. When derive
d on structs, two
instances are equal if all fields are equal, and not equal if any fields
are not equal. When derive
d on enums, two instances are equal if they
are the same variant and all fields are equal.
§How can I implement PartialEq
?
An example implementation for a domain in which two books are considered the same book if their ISBN matches, even if the formats differ:
enum BookFormat {
Paperback,
Hardback,
Ebook,
}
struct Book {
isbn: i32,
format: BookFormat,
}
impl PartialEq for Book {
fn eq(&self, other: &Self) -> bool {
self.isbn == other.isbn
}
}
let b1 = Book { isbn: 3, format: BookFormat::Paperback };
let b2 = Book { isbn: 3, format: BookFormat::Ebook };
let b3 = Book { isbn: 10, format: BookFormat::Paperback };
assert!(b1 == b2);
assert!(b1 != b3);
§How can I compare two different types?
The type you can compare with is controlled by PartialEq
’s type parameter.
For example, let’s tweak our previous code a bit:
// The derive implements <BookFormat> == <BookFormat> comparisons
#[derive(PartialEq)]
enum BookFormat {
Paperback,
Hardback,
Ebook,
}
struct Book {
isbn: i32,
format: BookFormat,
}
// Implement <Book> == <BookFormat> comparisons
impl PartialEq<BookFormat> for Book {
fn eq(&self, other: &BookFormat) -> bool {
self.format == *other
}
}
// Implement <BookFormat> == <Book> comparisons
impl PartialEq<Book> for BookFormat {
fn eq(&self, other: &Book) -> bool {
*self == other.format
}
}
let b1 = Book { isbn: 3, format: BookFormat::Paperback };
assert!(b1 == BookFormat::Paperback);
assert!(BookFormat::Ebook != b1);
By changing impl PartialEq for Book
to impl PartialEq<BookFormat> for Book
,
we allow BookFormat
s to be compared with Book
s.
A comparison like the one above, which ignores some fields of the struct,
can be dangerous. It can easily lead to an unintended violation of the
requirements for a partial equivalence relation. For example, if we kept
the above implementation of PartialEq<Book>
for BookFormat
and added an
implementation of PartialEq<Book>
for Book
(either via a #[derive]
or
via the manual implementation from the first example) then the result would
violate transitivity:
#[derive(PartialEq)]
enum BookFormat {
Paperback,
Hardback,
Ebook,
}
#[derive(PartialEq)]
struct Book {
isbn: i32,
format: BookFormat,
}
impl PartialEq<BookFormat> for Book {
fn eq(&self, other: &BookFormat) -> bool {
self.format == *other
}
}
impl PartialEq<Book> for BookFormat {
fn eq(&self, other: &Book) -> bool {
*self == other.format
}
}
fn main() {
let b1 = Book { isbn: 1, format: BookFormat::Paperback };
let b2 = Book { isbn: 2, format: BookFormat::Paperback };
assert!(b1 == BookFormat::Paperback);
assert!(BookFormat::Paperback == b2);
// The following should hold by transitivity but doesn't.
assert!(b1 == b2); // <-- PANICS
}
§Examples
let x: u32 = 0;
let y: u32 = 1;
assert_eq!(x == y, false);
assert_eq!(x.eq(&y), false);
Required Methods§
Provided Methods§
Implementors§
impl PartialEq for CliColors
impl PartialEq for Entity
impl PartialEq for rocket::http::Method
impl PartialEq for SameSite
impl PartialEq for StatusClass
impl PartialEq for PathError
impl PartialEq for Endpoint
impl PartialEq for rocket::serde::json::Value
impl PartialEq for Variant
impl PartialEq for rocket::serde::uuid::Version
impl PartialEq for Allow
impl PartialEq for Feature
impl PartialEq for Hsts
impl PartialEq for Sig
impl PartialEq for rocket::tls::CipherSuite
tls
only.impl PartialEq for TraceFormat
impl PartialEq for ASN1TimeZone
impl PartialEq for Class
impl PartialEq for DerConstraint
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::Error
impl PartialEq for Explicit
impl PartialEq for Implicit
impl PartialEq for Length
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::Needed
impl PartialEq for Real
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::CompareResult
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::error::ErrorKind
impl PartialEq for VerboseErrorKind
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::cmp::Ordering
impl PartialEq for TryReserveErrorKind
impl PartialEq for Infallible
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::fmt::Alignment
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::str::pattern::SearchStep
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::number::Endianness
impl PartialEq for PrettyPrinterFlag
impl PartialEq for Sign
impl PartialEq for X509Error
impl PartialEq for AsciiChar
impl PartialEq for core::net::ip_addr::IpAddr
impl PartialEq for Ipv6MulticastScope
impl PartialEq for SocketAddr
impl PartialEq for FpCategory
impl PartialEq for IntErrorKind
impl PartialEq for core::sync::atomic::Ordering
impl PartialEq for BacktraceStatus
impl PartialEq for VarError
impl PartialEq for std::io::SeekFrom
impl PartialEq for std::io::error::ErrorKind
impl PartialEq for Shutdown
impl PartialEq for BacktraceStyle
impl PartialEq for RecvTimeoutError
impl PartialEq for std::sync::mpsc::TryRecvError
impl PartialEq for _Unwind_Action
impl PartialEq for _Unwind_Reason_Code
impl PartialEq for TlsProtocolId
impl PartialEq for aws_lc_rs::cipher::AlgorithmId
impl PartialEq for OperatingMode
impl PartialEq for aws_lc_rs::kem::AlgorithmId
impl PartialEq for BlockCipherId
impl PartialEq for EncryptionAlgorithmId
impl PartialEq for KeySize
impl PartialEq for point_conversion_form_t
impl PartialEq for ParseAlphabetError
impl PartialEq for base64::decode::DecodeError
impl PartialEq for DecodeSliceError
impl PartialEq for EncodeSliceError
impl PartialEq for DecodePaddingMode
impl PartialEq for ConvertError
impl PartialEq for BigEndian
impl PartialEq for LittleEndian
impl PartialEq for const_oid::error::Error
impl PartialEq for Expiration
impl PartialEq for cookie::parse::ParseError
impl PartialEq for BitOrder
impl PartialEq for DecodeKind
impl PartialEq for CoderResult
impl PartialEq for DecoderResult
impl PartialEq for EncoderResult
impl PartialEq for Latin1Bidi
impl PartialEq for Actual
impl PartialEq for figment::error::Kind
impl PartialEq for figment::metadata::Source
impl PartialEq for figment::value::value::Empty
impl PartialEq for Num
impl PartialEq for figment::value::value::Value
impl PartialEq for PollNext
impl PartialEq for ErrorLevel
impl PartialEq for hashbrown::TryReserveError
impl PartialEq for httparse::Error
impl PartialEq for InlinableString
impl PartialEq for intrusive_collections::rbtree::Color
impl PartialEq for fsconfig_command
impl PartialEq for membarrier_cmd
impl PartialEq for membarrier_cmd_flag
impl PartialEq for log::Level
impl PartialEq for log::LevelFilter
impl PartialEq for TagPropagation
impl PartialEq for multer::error::Error
impl PartialEq for OnceState
impl PartialEq for FilterOp
impl PartialEq for ParkResult
impl PartialEq for RequeueOp
impl PartialEq for BytesMode
impl PartialEq for Marker
impl PartialEq for Advice
impl PartialEq for rustix::backend::fs::types::FileType
impl PartialEq for FlockOperation
impl PartialEq for rustix::fs::seek_from::SeekFrom
impl PartialEq for Direction
impl PartialEq for rustls_pemfile::pemfile::Error
impl PartialEq for Item
impl PartialEq for rustls_pki_types::server_name::IpAddr
impl PartialEq for ExpirationPolicy
impl PartialEq for RevocationCheckDepth
impl PartialEq for UnknownStatusPolicy
impl PartialEq for RevocationReason
impl PartialEq for DerTypeId
impl PartialEq for webpki::error::Error
impl PartialEq for Tls12Resumption
impl PartialEq for EchStatus
impl PartialEq for HandshakeKind
impl PartialEq for Side
impl PartialEq for CompressionLevel
impl PartialEq for AlertDescription
impl PartialEq for CertificateCompressionAlgorithm
impl PartialEq for rustls::enums::CipherSuite
impl PartialEq for rustls::enums::ContentType
impl PartialEq for rustls::enums::HandshakeType
impl PartialEq for ProtocolVersion
impl PartialEq for rustls::enums::SignatureAlgorithm
impl PartialEq for SignatureScheme
impl PartialEq for CertRevocationListError
impl PartialEq for CertificateError
impl PartialEq for EncryptedClientHelloError
impl PartialEq for rustls::error::Error
impl PartialEq for InconsistentKeys
impl PartialEq for InvalidMessage
impl PartialEq for PeerIncompatible
impl PartialEq for PeerMisbehaved
impl PartialEq for HashAlgorithm
impl PartialEq for NamedGroup
impl PartialEq for KeyExchangeAlgorithm
impl PartialEq for SupportedCipherSuite
impl PartialEq for s2n_quic_core::ack::ranges::Error
impl PartialEq for s2n_quic_core::connection::error::Error
impl PartialEq for ProcessingError
impl PartialEq for Classification
impl PartialEq for s2n_quic_core::connection::id::Error
impl PartialEq for s2n_quic_core::connection::id::Interest
impl PartialEq for s2n_quic_core::crypto::tls::HandshakeType
impl PartialEq for DatagramError
impl PartialEq for s2n_quic_core::endpoint::Location
impl PartialEq for s2n_quic_core::endpoint::Type
impl PartialEq for s2n_quic_core::endpoint::limits::Outcome
impl PartialEq for s2n_quic_core::event::generated::api::CipherSuite
impl PartialEq for s2n_quic_core::event::generated::supervisor::Outcome
impl PartialEq for AckElicitation
impl PartialEq for Probe
impl PartialEq for ExplicitCongestionNotification
impl PartialEq for IpAddress
impl PartialEq for SocketAddress
impl PartialEq for UnicastScope
impl PartialEq for IntervalSetError
impl PartialEq for s2n_quic_core::io::tx::Error
impl PartialEq for KeyPhase
impl PartialEq for PacketNumberSpace
impl PartialEq for SlidingWindowError
impl PartialEq for SpinBit
impl PartialEq for ValidationOutcome
impl PartialEq for DenyReason
impl PartialEq for s2n_quic_core::path::migration::Outcome
impl PartialEq for s2n_quic_core::query::ControlFlow
impl PartialEq for s2n_quic_core::recovery::loss::Outcome
impl PartialEq for StreamError
impl PartialEq for s2n_quic_core::stream::ops::Status
impl PartialEq for Receiver
impl PartialEq for Sender
impl PartialEq for StreamType
impl PartialEq for s2n_quic_core::task::cooldown::Outcome
impl PartialEq for s2n_quic_core::token::Source
impl PartialEq for Constraint
impl PartialEq for s2n_quic_core::transmission::interest::Interest
impl PartialEq for s2n_quic_core::transmission::mode::Mode
impl PartialEq for MigrationSupport
impl PartialEq for SocketType
impl PartialEq for AmplificationOutcome
impl PartialEq for Category
impl PartialEq for stable_pattern::pattern::SearchStep
impl PartialEq for InvalidFormatDescription
impl PartialEq for Parse
impl PartialEq for ParseFromDescription
impl PartialEq for TryFromParsed
impl PartialEq for time::format_description::component::Component
impl PartialEq for MonthRepr
impl PartialEq for time::format_description::modifier::Padding
impl PartialEq for SubsecondDigits
impl PartialEq for UnixTimestampPrecision
impl PartialEq for WeekNumberRepr
impl PartialEq for WeekdayRepr
impl PartialEq for YearRepr
impl PartialEq for OwnedFormatItem
impl PartialEq for DateKind
impl PartialEq for FormattedComponents
impl PartialEq for OffsetPrecision
impl PartialEq for TimePrecision
impl PartialEq for time::month::Month
impl PartialEq for time::weekday::Weekday
impl PartialEq for RuntimeFlavor
impl PartialEq for TryAcquireError
impl PartialEq for tokio::sync::broadcast::error::RecvError
impl PartialEq for tokio::sync::broadcast::error::TryRecvError
impl PartialEq for tokio::sync::mpsc::error::TryRecvError
impl PartialEq for tokio::sync::oneshot::error::TryRecvError
impl PartialEq for MissedTickBehavior
impl PartialEq for toml::value::Value
impl PartialEq for Offset
impl PartialEq for toml_edit::ser::Error
impl PartialEq for winnow::binary::Endianness
impl PartialEq for winnow::error::ErrorKind
impl PartialEq for winnow::error::Needed
impl PartialEq for StrContext
impl PartialEq for StrContextValue
impl PartialEq for winnow::stream::CompareResult
impl PartialEq for Attribute
impl PartialEq for Quirk
impl PartialEq for yansi::color::Color
impl PartialEq for rand::distributions::bernoulli::BernoulliError
impl PartialEq for rand::distributions::bernoulli::BernoulliError
impl PartialEq for rand::distributions::weighted::WeightedError
impl PartialEq for rand::distributions::weighted_index::WeightedError
impl PartialEq for rand::seq::index::IndexVec
impl PartialEq for rand::seq::index::IndexVec
impl PartialEq for bool
impl PartialEq for char
impl PartialEq for f16
impl PartialEq for f32
impl PartialEq for f64
impl PartialEq for f128
impl PartialEq for i8
impl PartialEq for i16
impl PartialEq for i32
impl PartialEq for i64
impl PartialEq for i128
impl PartialEq for isize
impl PartialEq for !
impl PartialEq for str
impl PartialEq for u8
impl PartialEq for u16
impl PartialEq for u32
impl PartialEq for u64
impl PartialEq for u128
impl PartialEq for ()
impl PartialEq for usize
impl PartialEq for Config
impl PartialEq for Ident
impl PartialEq for rocket::config::Level
impl PartialEq for SecretKey
impl PartialEq for rocket::data::Limits
impl PartialEq for rocket::error::Empty
impl PartialEq for rocket::form::name::Key
impl PartialEq for rocket::form::name::Name
impl PartialEq for NameBuf<'_>
impl PartialEq for Options
impl PartialEq for Accept
impl PartialEq for rocket::http::ContentType
impl PartialEq for MediaType
impl PartialEq for QMediaType
impl PartialEq for RawStr
impl PartialEq for RawStrBuf
impl PartialEq for rocket::http::Status
impl PartialEq for UncasedStr
impl PartialEq for TryFromUriError
impl PartialEq for Asterisk
impl PartialEq for NoContent
impl PartialEq for Event
impl PartialEq for Braced
impl PartialEq for Hyphenated
impl PartialEq for Simple
impl PartialEq for Urn
impl PartialEq for rocket::serde::uuid::Error
impl PartialEq for Uuid
impl PartialEq for Permission
impl PartialEq for ShutdownConfig
impl PartialEq for TlsConfig
tls
only.impl PartialEq for rocket::trace::LevelFilter
impl PartialEq for RequestId
trace
only.impl PartialEq for MtlsConfig
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::alloc::AllocError
impl PartialEq for Layout
impl PartialEq for LayoutError
impl PartialEq for UnorderedKeyError
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::collections::TryReserveError
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::fmt::Error
impl PartialEq for Assume
impl PartialEq for RangeFull
impl PartialEq for ParseBoolError
impl PartialEq for Utf8Error
impl PartialEq for FromUtf8Error
impl PartialEq for String
impl PartialEq for ASN1DateTime
impl PartialEq for BerClassFromIntError
impl PartialEq for Boolean
impl PartialEq for Enumerated
impl PartialEq for GeneralizedTime
impl PartialEq for Null
impl PartialEq for rocket::mtls::x509::der_parser::asn1_rs::Tag
impl PartialEq for UtcTime
impl PartialEq for BigInt
impl PartialEq for BigUint
impl PartialEq for ParseBigIntError
impl PartialEq for ASN1Time
impl PartialEq for BasicConstraints
impl PartialEq for ChallengePassword
impl PartialEq for CtVersion
impl PartialEq for InhibitAnyPolicy
impl PartialEq for KeyUsage
impl PartialEq for NSCertType
impl PartialEq for NidError
impl PartialEq for Pem
impl PartialEq for PolicyConstraints
impl PartialEq for ReasonCode
impl PartialEq for ReasonFlags
impl PartialEq for Validity
impl PartialEq for X509Version
impl PartialEq for untrusted::reader::EndOfInput
impl PartialEq for untrusted::EndOfInput
impl PartialEq for CString
impl PartialEq for FromVecWithNulError
impl PartialEq for IntoStringError
impl PartialEq for NulError
impl PartialEq for TypeId
impl PartialEq for CharTryFromError
impl PartialEq for ParseCharError
impl PartialEq for DecodeUtf16Error
impl PartialEq for TryFromCharError
impl PartialEq for CpuidResult
impl PartialEq for CStr
impl PartialEq for FromBytesUntilNulError
impl PartialEq for FromBytesWithNulError
impl PartialEq for PhantomPinned
impl PartialEq for core::net::ip_addr::Ipv4Addr
impl PartialEq for core::net::ip_addr::Ipv6Addr
impl PartialEq for core::net::parser::AddrParseError
impl PartialEq for SocketAddrV4
impl PartialEq for SocketAddrV6
impl PartialEq for ParseFloatError
impl PartialEq for core::num::error::ParseIntError
impl PartialEq for core::num::error::TryFromIntError
impl PartialEq for core::ptr::alignment::Alignment
impl PartialEq for RawWaker
impl PartialEq for RawWakerVTable
impl PartialEq for core::time::Duration
impl PartialEq for TryFromFloatSecsError
impl PartialEq for OsStr
impl PartialEq for OsString
impl PartialEq for std::fs::FileType
impl PartialEq for Permissions
impl PartialEq for std::os::unix::net::ucred::UCred
impl PartialEq for std::path::Path
impl PartialEq for PathBuf
impl PartialEq for StripPrefixError
impl PartialEq for ExitStatus
impl PartialEq for ExitStatusError
impl PartialEq for Output
impl PartialEq for std::sync::condvar::WaitTimeoutResult
impl PartialEq for std::sync::mpsc::RecvError
impl PartialEq for AccessError
impl PartialEq for ThreadId
impl PartialEq for std::time::Instant
impl PartialEq for std::time::SystemTime
impl PartialEq for aead::Error
impl PartialEq for allocator_api2::stable::alloc::AllocError
impl PartialEq for aws_lc_rs::aead::quic::Algorithm
impl PartialEq for aws_lc_rs::aead::Algorithm
impl PartialEq for aws_lc_rs::agreement::Algorithm
impl PartialEq for aws_lc_rs::cipher::Algorithm
impl PartialEq for aws_lc_rs::digest::Algorithm
impl PartialEq for aws_lc_rs::ec::EcdsaSigningAlgorithm
impl PartialEq for EcdsaVerificationAlgorithm
impl PartialEq for KeyRejected
impl PartialEq for aws_lc_rs::error::Unspecified
impl PartialEq for aws_lc_rs::hkdf::Algorithm
impl PartialEq for aws_lc_rs::hmac::Algorithm
impl PartialEq for aws_lc_rs::pbkdf2::Algorithm
impl PartialEq for ACCESS_DESCRIPTION_st
impl PartialEq for ASN1_ADB_TABLE_st
impl PartialEq for ASN1_ADB_st
impl PartialEq for ASN1_AUX_st
impl PartialEq for ASN1_EXTERN_FUNCS_st
impl PartialEq for ASN1_ITEM_st
impl PartialEq for ASN1_TEMPLATE_st
impl PartialEq for AUTHORITY_KEYID_st
impl PartialEq for BASIC_CONSTRAINTS_st
impl PartialEq for CRYPTO_dynlock
impl PartialEq for CRYPTO_dynlock_value
impl PartialEq for DES_cblock_st
impl PartialEq for DES_ks
impl PartialEq for DIST_POINT_st
impl PartialEq for DSA_SIG_st
impl PartialEq for EC_builtin_curve
impl PartialEq for EDIPartyName_st
impl PartialEq for GENERAL_SUBTREE_st
impl PartialEq for HRSS_private_key
impl PartialEq for HRSS_public_key
impl PartialEq for ISSUING_DIST_POINT_st
impl PartialEq for NAME_CONSTRAINTS_st
impl PartialEq for NOTICEREF_st
impl PartialEq for Netscape_spkac_st
impl PartialEq for Netscape_spki_st
impl PartialEq for PKCS7_SIGNED
impl PartialEq for PKCS7_SIGN_ENVELOPE
impl PartialEq for POLICYINFO_st
impl PartialEq for POLICY_CONSTRAINTS_st
impl PartialEq for POLICY_MAPPING_st
impl PartialEq for RIPEMD160state_st
impl PartialEq for USERNOTICE_st
impl PartialEq for X509_algor_st
impl PartialEq for X509_info_st
impl PartialEq for _IO_FILE
impl PartialEq for __va_list_tag
impl PartialEq for aes_key_st
impl PartialEq for asn1_string_st
impl PartialEq for bf_key_st
impl PartialEq for bignum_st
impl PartialEq for bio_method_st
impl PartialEq for bio_st
impl PartialEq for blake2b_state_st
impl PartialEq for bn_mont_ctx_st
impl PartialEq for buf_mem_st
impl PartialEq for cbb_buffer_st
impl PartialEq for cbb_child_st
impl PartialEq for cbs_st
impl PartialEq for conf_value_st
impl PartialEq for crypto_ex_data_st
impl PartialEq for ecdsa_method_st
impl PartialEq for ecdsa_sig_st
impl PartialEq for env_md_ctx_st
impl PartialEq for evp_cipher_ctx_st
impl PartialEq for evp_cipher_info_st
impl PartialEq for evp_encode_ctx_st
impl PartialEq for evp_hpke_key_st
impl PartialEq for md4_state_st
impl PartialEq for md5_state_st
impl PartialEq for obj_name_st
impl PartialEq for openssl_method_common_st
impl PartialEq for otherName_st
impl PartialEq for private_key_st
impl PartialEq for rand_meth_st
impl PartialEq for rc4_key_st
impl PartialEq for rsa_meth_st
impl PartialEq for rsa_pss_params_st
impl PartialEq for sha256_state_st
impl PartialEq for sha512_state_st
impl PartialEq for sha_state_st
impl PartialEq for tm
impl PartialEq for trust_token_st
impl PartialEq for v3_ext_ctx
impl PartialEq for v3_ext_method
impl PartialEq for x509_purpose_st
impl PartialEq for x509_trust_st
impl PartialEq for Alphabet
impl PartialEq for DecodeMetadata
impl PartialEq for block_buffer::Error
impl PartialEq for bytes::bytes::Bytes
impl PartialEq for BytesMut
impl PartialEq for ObjectIdentifier
impl PartialEq for cookie::secure::key::Key
impl PartialEq for InvalidLength
impl PartialEq for data_encoding::DecodeError
impl PartialEq for DecodePartial
impl PartialEq for data_encoding::Encoding
impl PartialEq for deranged::ParseIntError
impl PartialEq for deranged::TryFromIntError
impl PartialEq for MacError
impl PartialEq for InvalidBufferSize
impl PartialEq for encoding_rs::Encoding
impl PartialEq for Rng
impl PartialEq for figment::error::Error
impl PartialEq for figment::metadata::Metadata
impl PartialEq for Profile
impl PartialEq for RelativePathBuf
impl PartialEq for figment::value::tag::Tag
impl PartialEq for futures_channel::mpsc::SendError
impl PartialEq for Canceled
impl PartialEq for Aborted
impl PartialEq for getrandom::error::Error
impl PartialEq for h2::ext::Protocol
impl PartialEq for Reason
impl PartialEq for h2::share::StreamId
impl PartialEq for h3::error::Code
impl PartialEq for h3::ext::Protocol
impl PartialEq for InvalidStreamId
impl PartialEq for h3::proto::stream::StreamId
impl PartialEq for HeaderName
impl PartialEq for HeaderValue
impl PartialEq for http::method::Method
impl PartialEq for StatusCode
impl PartialEq for http::uri::authority::Authority
impl PartialEq for PathAndQuery
impl PartialEq for Scheme
impl PartialEq for http::uri::Uri
impl PartialEq for http::version::Version
impl PartialEq for InvalidChunkSize
impl PartialEq for HttpDate
impl PartialEq for ReasonPhrase
impl PartialEq for hyper::ext::Protocol
impl PartialEq for indexmap::TryReserveError
impl PartialEq for InlineString
impl PartialEq for NotEnoughSpaceError
impl PartialEq for __kernel_timespec
impl PartialEq for ParseLevelError
impl PartialEq for Mime
impl PartialEq for mio::interest::Interest
impl PartialEq for mio::token::Token
impl PartialEq for ParseRatioError
impl PartialEq for parking_lot::condvar::WaitTimeoutResult
impl PartialEq for ParkToken
impl PartialEq for UnparkResult
impl PartialEq for UnparkToken
impl PartialEq for ring::aead::quic::Algorithm
impl PartialEq for ring::aead::Algorithm
impl PartialEq for ring::agreement::Algorithm
impl PartialEq for ring::digest::Algorithm
impl PartialEq for ring::ec::suite_b::ecdsa::signing::EcdsaSigningAlgorithm
impl PartialEq for ring::error::Unspecified
impl PartialEq for ring::hkdf::Algorithm
impl PartialEq for ring::hmac::Algorithm
impl PartialEq for ring::pbkdf2::Algorithm
impl PartialEq for ExtMeta
impl PartialEq for ByteBuf
impl PartialEq for CreateFlags
impl PartialEq for ReadFlags
impl PartialEq for WatchFlags
impl PartialEq for Access
impl PartialEq for AtFlags
impl PartialEq for FallocateFlags
impl PartialEq for MemfdFlags
impl PartialEq for rustix::backend::fs::types::Mode
impl PartialEq for OFlags
impl PartialEq for RenameFlags
impl PartialEq for ResolveFlags
impl PartialEq for SealFlags
impl PartialEq for StatVfsMountFlags
impl PartialEq for StatxFlags
impl PartialEq for Errno
impl PartialEq for DupFlags
impl PartialEq for FdFlags
impl PartialEq for ReadWriteFlags
impl PartialEq for MountFlags
impl PartialEq for MountPropagationFlags
impl PartialEq for UnmountFlags
impl PartialEq for XattrFlags
impl PartialEq for Opcode
impl PartialEq for Gid
impl PartialEq for Uid
impl PartialEq for rustls_pki_types::server_name::AddrParseError
impl PartialEq for rustls_pki_types::server_name::Ipv4Addr
impl PartialEq for rustls_pki_types::server_name::Ipv6Addr
impl PartialEq for rustls_pki_types::AlgorithmIdentifier
impl PartialEq for UnixTime
impl PartialEq for IoState
impl PartialEq for UnsupportedOperationError
impl PartialEq for HpkeSuite
impl PartialEq for OtherError
impl PartialEq for Tls12CipherSuite
impl PartialEq for Tls13CipherSuite
impl PartialEq for SupportedProtocolVersion
impl PartialEq for s2n_codec::unaligned::TryFromIntError
impl PartialEq for i24
impl PartialEq for i48
impl PartialEq for u24
impl PartialEq for u48
impl PartialEq for s2n_codec::zerocopy::I16
impl PartialEq for s2n_codec::zerocopy::I32
impl PartialEq for s2n_codec::zerocopy::I64
impl PartialEq for s2n_codec::zerocopy::I128
impl PartialEq for s2n_codec::zerocopy::U16
impl PartialEq for s2n_codec::zerocopy::U32
impl PartialEq for s2n_codec::zerocopy::U64
impl PartialEq for s2n_codec::zerocopy::U128
impl PartialEq for Transmission
impl PartialEq for s2n_quic_core::application::error::Error
impl PartialEq for s2n_quic_core::application::server_name::ServerName
impl PartialEq for Reassembler
impl PartialEq for InitialId
impl PartialEq for LocalId
impl PartialEq for PeerId
impl PartialEq for UnboundedId
impl PartialEq for s2n_quic_core::crypto::packet_protection::Error
impl PartialEq for s2n_quic_core::crypto::tls::error::Error
impl PartialEq for s2n_quic_core::datagram::default::Datagram
impl PartialEq for EcnCounts
impl PartialEq for DataBlocked
impl PartialEq for HandshakeDone
impl PartialEq for MaxData
impl PartialEq for MaxStreamData
impl PartialEq for MaxStreams
impl PartialEq for s2n_quic_core::frame::padding::Padding
impl PartialEq for Ping
impl PartialEq for ResetStream
impl PartialEq for RetireConnectionId
impl PartialEq for StopSending
impl PartialEq for StreamDataBlocked
impl PartialEq for StreamsBlocked
impl PartialEq for AncillaryData
impl PartialEq for DatagramInfo
impl PartialEq for EtherType
impl PartialEq for s2n_quic_core::inet::ethernet::Header
impl PartialEq for MacAddress
impl PartialEq for s2n_quic_core::inet::ip::Protocol
impl PartialEq for FlagFragment
impl PartialEq for s2n_quic_core::inet::ipv4::Header
impl PartialEq for IpV4Address
impl PartialEq for SocketAddressV4
impl PartialEq for Tos
impl PartialEq for Vihl
impl PartialEq for s2n_quic_core::inet::ipv6::Header
impl PartialEq for IpV6Address
impl PartialEq for SocketAddressV6
impl PartialEq for Vtcfl
impl PartialEq for s2n_quic_core::inet::udp::Header
impl PartialEq for ProtectedKeyPhase
impl PartialEq for PacketNumber
impl PartialEq for PacketNumberLen
impl PartialEq for PacketNumberRange
impl PartialEq for ProtectedPacketNumber
impl PartialEq for TruncatedPacketNumber
impl PartialEq for BaseMtu
impl PartialEq for InitialMtu
impl PartialEq for MaxMtu
impl PartialEq for MtuError
impl PartialEq for s2n_quic_core::path::Id
impl PartialEq for s2n_quic_core::path::LocalAddress
impl PartialEq for s2n_quic_core::path::RemoteAddress
impl PartialEq for s2n_quic_core::path::Tuple
impl PartialEq for Bandwidth
impl PartialEq for PacketInfo
impl PartialEq for RttEstimator
impl PartialEq for s2n_quic_core::stateless_reset::token::Token
impl PartialEq for s2n_quic_core::stream::id::StreamId
impl PartialEq for s2n_quic_core::stream::limits::Limits
impl PartialEq for LocalBidirectional
impl PartialEq for LocalUnidirectional
impl PartialEq for MaxSendBufferSize
impl PartialEq for s2n_quic_core::stream::ops::rx::Response
impl PartialEq for s2n_quic_core::stream::ops::Bytes
impl PartialEq for Chunks
impl PartialEq for s2n_quic_core::stream::ops::Response
impl PartialEq for s2n_quic_core::stream::ops::tx::Response
impl PartialEq for Timer
impl PartialEq for s2n_quic_core::time::timestamp::Timestamp
impl PartialEq for s2n_quic_core::transport::error::Code
impl PartialEq for s2n_quic_core::transport::error::Error
impl PartialEq for AckDelayExponent
impl PartialEq for ActiveConnectionIdLimit
impl PartialEq for DcSupportedVersions
impl PartialEq for InitialFlowControlLimits
impl PartialEq for InitialMaxData
impl PartialEq for InitialMaxStreamDataBidiLocal
impl PartialEq for InitialMaxStreamDataBidiRemote
impl PartialEq for InitialMaxStreamDataUni
impl PartialEq for InitialMaxStreamsBidi
impl PartialEq for InitialMaxStreamsUni
impl PartialEq for InitialSourceConnectionId
impl PartialEq for InitialStreamLimits
impl PartialEq for MaxAckDelay
impl PartialEq for MaxDatagramFrameSize
impl PartialEq for MaxIdleTimeout
impl PartialEq for MaxUdpPayloadSize
impl PartialEq for OriginalDestinationConnectionId
impl PartialEq for PreferredAddress
impl PartialEq for RetrySourceConnectionId
impl PartialEq for ValidationError
impl PartialEq for ZeroRttParameters
impl PartialEq for VarInt
impl PartialEq for s2n_quic_core::xdp::path::LocalAddress
impl PartialEq for s2n_quic_core::xdp::path::RemoteAddress
impl PartialEq for s2n_quic_core::xdp::path::Tuple
impl PartialEq for Handle
impl PartialEq for Connect
impl PartialEq for IgnoredAny
impl PartialEq for serde::de::value::Error
impl PartialEq for serde_json::map::Map<String, Value>
impl PartialEq for Number
impl PartialEq for SigId
impl PartialEq for SockAddr
impl PartialEq for Domain
impl PartialEq for socket2::Protocol
impl PartialEq for RecvFlags
impl PartialEq for socket2::Type
impl PartialEq for time::date::Date
impl PartialEq for time::duration::Duration
impl PartialEq for ComponentRange
impl PartialEq for ConversionRange
impl PartialEq for DifferentVariant
impl PartialEq for InvalidVariant
impl PartialEq for Day
impl PartialEq for End
impl PartialEq for Hour
impl PartialEq for Ignore
impl PartialEq for Minute
impl PartialEq for time::format_description::modifier::Month
impl PartialEq for OffsetHour
impl PartialEq for OffsetMinute
impl PartialEq for OffsetSecond
impl PartialEq for Ordinal
impl PartialEq for Period
impl PartialEq for Second
impl PartialEq for Subsecond
impl PartialEq for UnixTimestamp
impl PartialEq for WeekNumber
impl PartialEq for time::format_description::modifier::Weekday
impl PartialEq for Year
impl PartialEq for Rfc2822
impl PartialEq for Rfc3339
impl PartialEq for time::instant::Instant
impl PartialEq for OffsetDateTime
impl PartialEq for PrimitiveDateTime
impl PartialEq for time::time::Time
impl PartialEq for UtcOffset
impl PartialEq for tokio_stream::stream_ext::timeout::Elapsed
impl PartialEq for AnyDelimiterCodec
impl PartialEq for BytesCodec
impl PartialEq for LinesCodec
impl PartialEq for tokio::io::interest::Interest
impl PartialEq for Ready
impl PartialEq for tokio::net::unix::ucred::UCred
impl PartialEq for SignalKind
impl PartialEq for tokio::sync::oneshot::error::RecvError
impl PartialEq for tokio::time::error::Elapsed
impl PartialEq for tokio::time::instant::Instant
impl PartialEq for toml::de::Error
impl PartialEq for toml::map::Map<String, Value>
impl PartialEq for toml::ser::Error
impl PartialEq for toml_datetime::datetime::Date
impl PartialEq for Datetime
impl PartialEq for toml_datetime::datetime::Time
impl PartialEq for toml_edit::de::Error
impl PartialEq for TomlError
impl PartialEq for InternalString
impl PartialEq for toml_edit::key::Key
impl PartialEq for RawString
impl PartialEq for Decor
impl PartialEq for Repr
impl PartialEq for Identifier
impl PartialEq for tracing_core::field::Empty
impl PartialEq for Field
impl PartialEq for FieldSet
impl PartialEq for tracing_core::metadata::Kind
impl PartialEq for tracing_core::span::Id
impl PartialEq for Targets
impl PartialEq for Compact
impl PartialEq for FmtSpan
impl PartialEq for Full
impl PartialEq for tracing_subscriber::fmt::time::SystemTime
impl PartialEq for Uptime
impl PartialEq for tracing::span::Span
impl PartialEq for ATerm
impl PartialEq for B0
impl PartialEq for B1
impl PartialEq for Z0
impl PartialEq for Equal
impl PartialEq for Greater
impl PartialEq for Less
impl PartialEq for UTerm
impl PartialEq for universal_hash::Error
impl PartialEq for uuid::timestamp::Timestamp
impl PartialEq for BStr
impl PartialEq for winnow::stream::Bytes
impl PartialEq for winnow::stream::Range
impl PartialEq for Condition
impl PartialEq for Style
impl PartialEq for getrandom::error::Error
impl PartialEq for Bernoulli
impl PartialEq for StepRng
impl PartialEq for SmallRng
impl PartialEq for StdRng
impl PartialEq for ChaCha8Core
impl PartialEq for ChaCha8Rng
impl PartialEq for ChaCha12Core
impl PartialEq for ChaCha12Rng
impl PartialEq for ChaCha20Core
impl PartialEq for ChaCha20Rng
impl PartialEq for vec128_storage
impl PartialEq for vec256_storage
impl PartialEq for vec512_storage
impl PartialEq<&&str> for RawStr
impl PartialEq<&Method> for rocket::http::Method
impl PartialEq<&str> for rocket::serde::json::Value
impl PartialEq<&str> for rocket::form::name::Name
impl PartialEq<&str> for RawStr
impl PartialEq<&str> for Uncased<'_>
impl PartialEq<&str> for UncasedStr
impl PartialEq<&str> for Absolute<'_>
impl PartialEq<&str> for rocket::http::uri::Authority<'_>
impl PartialEq<&str> for Host<'_>
impl PartialEq<&str> for Origin<'_>
impl PartialEq<&str> for rocket::http::uri::Path<'_>
impl PartialEq<&str> for Query<'_>
impl PartialEq<&str> for rocket::http::uri::Reference<'_>
impl PartialEq<&str> for RouteUri<'_>
impl PartialEq<&str> for OsString
impl PartialEq<&str> for Profile
impl PartialEq<&RawStr> for Cow<'_, str>
impl PartialEq<&RawStr> for Cow<'_, RawStr>
impl PartialEq<&RawStr> for str
impl PartialEq<&RawStr> for RawStr
impl PartialEq<&RawStr> for rocket::http::uri::Path<'_>
impl PartialEq<&RawStr> for Query<'_>
impl PartialEq<&RawStr> for String
impl PartialEq<&Uncased<'_>> for UncasedStr
impl PartialEq<&Uncased<'_>> for String
impl PartialEq<&UncasedStr> for str
impl PartialEq<&UncasedStr> for Uncased<'_>
impl PartialEq<&Profile> for Profile
impl PartialEq<&[BorrowedFormatItem<'_>]> for BorrowedFormatItem<'_>
impl PartialEq<&[OwnedFormatItem]> for OwnedFormatItem
impl PartialEq<Method> for &rocket::http::Method
impl PartialEq<Value> for &str
impl PartialEq<Value> for bool
impl PartialEq<Value> for f32
impl PartialEq<Value> for f64
impl PartialEq<Value> for i8
impl PartialEq<Value> for i16
impl PartialEq<Value> for i32
impl PartialEq<Value> for i64
impl PartialEq<Value> for isize
impl PartialEq<Value> for str
impl PartialEq<Value> for u8
impl PartialEq<Value> for u16
impl PartialEq<Value> for u32
impl PartialEq<Value> for u64
impl PartialEq<Value> for usize
impl PartialEq<Value> for String
impl PartialEq<Cow<'_, str>> for &RawStr
impl PartialEq<Cow<'_, str>> for RawStr
impl PartialEq<Cow<'_, RawStr>> for &RawStr
impl PartialEq<Cow<'_, RawStr>> for RawStr
impl PartialEq<IpAddr> for core::net::ip_addr::Ipv4Addr
impl PartialEq<IpAddr> for core::net::ip_addr::Ipv6Addr
impl PartialEq<Level> for log::LevelFilter
impl PartialEq<LevelFilter> for log::Level
impl PartialEq<BorrowedFormatItem<'_>> for &[BorrowedFormatItem<'_>]
impl PartialEq<BorrowedFormatItem<'_>> for time::format_description::component::Component
impl PartialEq<Component> for BorrowedFormatItem<'_>
impl PartialEq<Component> for OwnedFormatItem
impl PartialEq<OwnedFormatItem> for &[OwnedFormatItem]
impl PartialEq<OwnedFormatItem> for time::format_description::component::Component
impl PartialEq<bool> for rocket::serde::json::Value
impl PartialEq<f32> for rocket::serde::json::Value
impl PartialEq<f64> for rocket::serde::json::Value
impl PartialEq<i8> for rocket::serde::json::Value
impl PartialEq<i16> for rocket::serde::json::Value
impl PartialEq<i16> for s2n_codec::zerocopy::I16
impl PartialEq<i32> for rocket::serde::json::Value
impl PartialEq<i32> for s2n_codec::zerocopy::I32
impl PartialEq<i64> for rocket::serde::json::Value
impl PartialEq<i64> for s2n_codec::zerocopy::I64
impl PartialEq<i128> for s2n_codec::zerocopy::I128
impl PartialEq<isize> for rocket::serde::json::Value
impl PartialEq<str> for &RawStr
impl PartialEq<str> for &UncasedStr
impl PartialEq<str> for rocket::serde::json::Value
impl PartialEq<str> for rocket::form::name::Key
impl PartialEq<str> for rocket::form::name::Name
impl PartialEq<str> for RawStr
impl PartialEq<str> for Uncased<'_>
impl PartialEq<str> for UncasedStr
impl PartialEq<str> for Absolute<'_>
impl PartialEq<str> for rocket::http::uri::Authority<'_>
impl PartialEq<str> for Host<'_>
impl PartialEq<str> for Origin<'_>
impl PartialEq<str> for rocket::http::uri::Path<'_>
impl PartialEq<str> for Query<'_>
impl PartialEq<str> for rocket::http::uri::Reference<'_>
impl PartialEq<str> for RouteUri<'_>
impl PartialEq<str> for OsStr
impl PartialEq<str> for OsString
impl PartialEq<str> for bytes::bytes::Bytes
impl PartialEq<str> for BytesMut
impl PartialEq<str> for Profile
impl PartialEq<str> for HeaderName
impl PartialEq<str> for HeaderValue
impl PartialEq<str> for http::method::Method
impl PartialEq<str> for http::uri::authority::Authority
Case-insensitive equality
§Examples
let authority: Authority = "HELLO.com".parse().unwrap();
assert_eq!(authority, "hello.coM");
assert_eq!("hello.com", authority);
impl PartialEq<str> for PathAndQuery
impl PartialEq<str> for Scheme
Case-insensitive equality
§Examples
let scheme: Scheme = "HTTP".parse().unwrap();
assert_eq!(scheme, *"http");
impl PartialEq<str> for http::uri::Uri
impl PartialEq<str> for toml_edit::key::Key
impl PartialEq<u8> for rocket::serde::json::Value
impl PartialEq<u8> for AckDelayExponent
impl PartialEq<u16> for rocket::serde::json::Value
impl PartialEq<u16> for StatusCode
impl PartialEq<u16> for s2n_codec::zerocopy::U16
impl PartialEq<u32> for rocket::serde::json::Value
impl PartialEq<u32> for s2n_codec::zerocopy::U32
impl PartialEq<u64> for rocket::serde::json::Value
impl PartialEq<u64> for h3::error::Code
impl PartialEq<u64> for s2n_codec::zerocopy::U64
impl PartialEq<u64> for VarInt
impl PartialEq<u128> for s2n_codec::zerocopy::U128
impl PartialEq<usize> for rocket::serde::json::Value
impl PartialEq<usize> for VarInt
impl PartialEq<Level> for rocket::trace::LevelFilter
impl PartialEq<ByteUnit> for i8
impl PartialEq<ByteUnit> for i16
impl PartialEq<ByteUnit> for i32
impl PartialEq<ByteUnit> for i64
impl PartialEq<ByteUnit> for i128
impl PartialEq<ByteUnit> for isize
impl PartialEq<ByteUnit> for u8
impl PartialEq<ByteUnit> for u16
impl PartialEq<ByteUnit> for u32
impl PartialEq<ByteUnit> for u64
impl PartialEq<ByteUnit> for u128
impl PartialEq<ByteUnit> for usize
impl PartialEq<Key> for str
impl PartialEq<Name> for &str
impl PartialEq<Name> for str
impl PartialEq<NameBuf<'_>> for &str
impl PartialEq<NameBuf<'_>> for str
impl PartialEq<NameBuf<'_>> for rocket::form::name::Name
impl PartialEq<RawStr> for &&str
impl PartialEq<RawStr> for &str
impl PartialEq<RawStr> for &RawStr
impl PartialEq<RawStr> for Cow<'_, str>
impl PartialEq<RawStr> for Cow<'_, RawStr>
impl PartialEq<RawStr> for str
impl PartialEq<RawStr> for rocket::http::uri::Path<'_>
impl PartialEq<RawStr> for Query<'_>
impl PartialEq<RawStr> for String
impl PartialEq<Uncased<'_>> for &str
impl PartialEq<Uncased<'_>> for &UncasedStr
impl PartialEq<Uncased<'_>> for str
impl PartialEq<Uncased<'_>> for Uncased<'_>
impl PartialEq<Uncased<'_>> for UncasedStr
impl PartialEq<Uncased<'_>> for String
impl PartialEq<UncasedStr> for &str
impl PartialEq<UncasedStr> for &Uncased<'_>
impl PartialEq<UncasedStr> for str
impl PartialEq<UncasedStr> for Uncased<'_>
impl PartialEq<UncasedStr> for String
impl PartialEq<Absolute<'_>> for str
impl PartialEq<Authority<'_>> for str
impl PartialEq<Host<'_>> for str
impl PartialEq<Origin<'_>> for str
impl PartialEq<Path<'_>> for &str
impl PartialEq<Path<'_>> for &RawStr
impl PartialEq<Path<'_>> for str
impl PartialEq<Path<'_>> for RawStr
impl PartialEq<Path<'_>> for rocket::http::uri::Path<'_>
impl PartialEq<Query<'_>> for &str
impl PartialEq<Query<'_>> for &RawStr
impl PartialEq<Query<'_>> for str
impl PartialEq<Query<'_>> for RawStr
impl PartialEq<Query<'_>> for Query<'_>
impl PartialEq<Reference<'_>> for str
impl PartialEq<LevelFilter> for rocket::config::Level
impl PartialEq<String> for &RawStr
impl PartialEq<String> for &Uncased<'_>
impl PartialEq<String> for rocket::serde::json::Value
impl PartialEq<String> for RawStr
impl PartialEq<String> for Uncased<'_>
impl PartialEq<String> for UncasedStr
impl PartialEq<String> for bytes::bytes::Bytes
impl PartialEq<String> for BytesMut
impl PartialEq<String> for HeaderValue
impl PartialEq<String> for http::uri::authority::Authority
impl PartialEq<String> for PathAndQuery
impl PartialEq<String> for toml_edit::key::Key
impl PartialEq<Vec<u8>> for bytes::bytes::Bytes
impl PartialEq<Vec<u8>> for BytesMut
impl PartialEq<Input<'_>> for Input<'_>
impl PartialEq<Input<'_>> for [u8]
impl PartialEq<Ipv4Addr> for core::net::ip_addr::IpAddr
impl PartialEq<Ipv6Addr> for core::net::ip_addr::IpAddr
impl PartialEq<Duration> for time::duration::Duration
impl PartialEq<OsStr> for str
impl PartialEq<OsStr> for std::path::Path
impl PartialEq<OsStr> for PathBuf
impl PartialEq<OsString> for str
impl PartialEq<OsString> for std::path::Path
impl PartialEq<OsString> for PathBuf
impl PartialEq<Path> for Endpoint
impl PartialEq<Path> for OsStr
impl PartialEq<Path> for OsString
impl PartialEq<Path> for PathBuf
impl PartialEq<PathBuf> for Endpoint
impl PartialEq<PathBuf> for OsStr
impl PartialEq<PathBuf> for OsString
impl PartialEq<PathBuf> for std::path::Path
impl PartialEq<Instant> for time::instant::Instant
impl PartialEq<SystemTime> for OffsetDateTime
impl PartialEq<Bytes> for &str
impl PartialEq<Bytes> for &[u8]
impl PartialEq<Bytes> for str
impl PartialEq<Bytes> for String
impl PartialEq<Bytes> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>
impl PartialEq<Bytes> for BytesMut
impl PartialEq<Bytes> for [u8]
impl PartialEq<BytesMut> for &str
impl PartialEq<BytesMut> for &[u8]
impl PartialEq<BytesMut> for str
impl PartialEq<BytesMut> for String
impl PartialEq<BytesMut> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>
impl PartialEq<BytesMut> for bytes::bytes::Bytes
impl PartialEq<BytesMut> for [u8]
impl PartialEq<Profile> for &str
impl PartialEq<Profile> for &Profile
impl PartialEq<Profile> for str
impl PartialEq<HeaderName> for str
impl PartialEq<HeaderValue> for str
impl PartialEq<HeaderValue> for String
impl PartialEq<HeaderValue> for [u8]
impl PartialEq<Method> for str
impl PartialEq<StatusCode> for u16
impl PartialEq<Authority> for str
impl PartialEq<Authority> for String
impl PartialEq<PathAndQuery> for str
impl PartialEq<PathAndQuery> for String
impl PartialEq<Scheme> for str
Case-insensitive equality
impl PartialEq<Uri> for str
impl PartialEq<Extent<&str>> for &str
impl PartialEq<InitialId> for OriginalDestinationConnectionId
impl PartialEq<LocalId> for RetrySourceConnectionId
impl PartialEq<UnboundedId> for InitialSourceConnectionId
impl PartialEq<VarInt> for ActiveConnectionIdLimit
impl PartialEq<VarInt> for InitialMaxData
impl PartialEq<VarInt> for InitialMaxStreamDataBidiLocal
impl PartialEq<VarInt> for InitialMaxStreamDataBidiRemote
impl PartialEq<VarInt> for InitialMaxStreamDataUni
impl PartialEq<VarInt> for InitialMaxStreamsBidi
impl PartialEq<VarInt> for InitialMaxStreamsUni
impl PartialEq<VarInt> for MaxAckDelay
impl PartialEq<VarInt> for MaxDatagramFrameSize
impl PartialEq<VarInt> for MaxIdleTimeout
impl PartialEq<VarInt> for MaxUdpPayloadSize
impl PartialEq<Duration> for core::time::Duration
impl PartialEq<Instant> for std::time::Instant
impl PartialEq<OffsetDateTime> for std::time::SystemTime
impl PartialEq<[u8]> for Input<'_>
impl PartialEq<[u8]> for bytes::bytes::Bytes
impl PartialEq<[u8]> for BytesMut
impl PartialEq<[u8]> for HeaderValue
impl<'a> PartialEq for ProxyProto<'a>
impl<'a> PartialEq for rocket::http::uri::Uri<'a>
impl<'a> PartialEq for PdvIdentification<'a>
impl<'a> PartialEq for BerObjectContent<'a>
impl<'a> PartialEq for DistributionPointName<'a>
impl<'a> PartialEq for GeneralName<'a>
impl<'a> PartialEq for ParsedCriAttribute<'a>
impl<'a> PartialEq for ParsedExtension<'a>
impl<'a> PartialEq for PublicKey<'a>
impl<'a> PartialEq for rocket::mtls::x509::signature_algorithm::SignatureAlgorithm<'a>
impl<'a> PartialEq for std::path::Component<'a>
impl<'a> PartialEq for Prefix<'a>
impl<'a> PartialEq for PrivateKeyDer<'a>
impl<'a> PartialEq for rustls_pki_types::server_name::ServerName<'a>
impl<'a> PartialEq for IpAddressRef<'a>
impl<'a> PartialEq for SocketAddressRef<'a>
impl<'a> PartialEq for Unexpected<'a>
impl<'a> PartialEq for BorrowedFormatItem<'a>
impl<'a> PartialEq for Certificate<'a>
impl<'a> PartialEq for CertificateDer<'a>
impl<'a> PartialEq for rocket::mtls::Name<'a>
impl<'a> PartialEq for Utf8Chunk<'a>
impl<'a> PartialEq for Any<'a>
impl<'a> PartialEq for BitString<'a>
impl<'a> PartialEq for BmpString<'a>
impl<'a> PartialEq for EmbeddedPdv<'a>
impl<'a> PartialEq for GeneralString<'a>
impl<'a> PartialEq for GraphicString<'a>
impl<'a> PartialEq for rocket::mtls::x509::der_parser::asn1_rs::Header<'a>
Compare two BER headers. len
fields are compared only if both objects have it set (same for raw_tag
)