pub trait PartialOrd<Rhs = Self>: PartialEq<Rhs>where
Rhs: ?Sized,{
// Required method
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
// Provided methods
fn lt(&self, other: &Rhs) -> bool { ... }
fn le(&self, other: &Rhs) -> bool { ... }
fn gt(&self, other: &Rhs) -> bool { ... }
fn ge(&self, other: &Rhs) -> bool { ... }
}Expand description
Trait for types that form a partial order.
The lt, le, gt, and ge methods of this trait can be called using the <, <=, >, and
>= operators, respectively.
This trait should only contain the comparison logic for a type if one plans on only
implementing PartialOrd but not Ord. Otherwise the comparison logic should be in Ord
and this trait implemented with Some(self.cmp(other)).
The methods of this trait must be consistent with each other and with those of PartialEq.
The following conditions must hold:
a == bif and only ifpartial_cmp(a, b) == Some(Equal).a < bif and only ifpartial_cmp(a, b) == Some(Less)a > bif and only ifpartial_cmp(a, b) == Some(Greater)a <= bif and only ifa < b || a == ba >= bif and only ifa > b || a == ba != bif and only if!(a == b).
Conditions 2–5 above are ensured by the default implementation. Condition 6 is already ensured
by PartialEq.
If Ord is also implemented for Self and Rhs, it must also be consistent with
partial_cmp (see the documentation of that trait for the exact requirements). It’s easy to
accidentally make them disagree by deriving some of the traits and manually implementing others.
The comparison relations must satisfy the following conditions (for all a, b, c of type
A, B, C):
- Transitivity: if
A: PartialOrd<B>andB: PartialOrd<C>andA: PartialOrd<C>, thena < bandb < cimpliesa < c. The same must hold for both==and>. This must also work for longer chains, such as whenA: PartialOrd<B>,B: PartialOrd<C>,C: PartialOrd<D>, andA: PartialOrd<D>all exist. - Duality: if
A: PartialOrd<B>andB: PartialOrd<A>, thena < bif and only ifb > a.
Note that the B: PartialOrd<A> (dual) and A: PartialOrd<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 PartialOrd
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 PartialOrd<ForeignType> for LocalType, but it should
not do impl PartialOrd<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 impls that allow comparing T < U. In
other words, if other crates add impls 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 impls that “stitch together” comparisons of foreign types in ways that violate
transitivity.
Not having such foreign impls also avoids forward compatibility issues where one crate adding
more PartialOrd implementations can cause build failures in downstream crates.
§Corollaries
The following corollaries follow from the above requirements:
- irreflexivity of
<and>:!(a < a),!(a > a) - transitivity of
>: ifa > bandb > cthena > c - duality of
partial_cmp:partial_cmp(a, b) == partial_cmp(b, a).map(Ordering::reverse)
§Strict and non-strict partial orders
The < and > operators behave according to a strict partial order. However, <= and >=
do not behave according to a non-strict partial order. That is because mathematically, a
non-strict partial order would require reflexivity, i.e. a <= a would need to be true for
every a. This isn’t always the case for types that implement PartialOrd, for example:
let a = f64::NAN;
assert_eq!(a <= a, false);§Derivable
This trait can be used with #[derive].
When derived on structs, it will produce a
lexicographic ordering based on the
top-to-bottom declaration order of the struct’s members.
When derived on enums, variants are primarily ordered by their discriminants. Secondarily,
they are ordered by their fields. By default, the discriminant is smallest for variants at the
top, and largest for variants at the bottom. Here’s an example:
#[derive(PartialEq, PartialOrd)]
enum E {
Top,
Bottom,
}
assert!(E::Top < E::Bottom);However, manually setting the discriminants can override this default behavior:
#[derive(PartialEq, PartialOrd)]
enum E {
Top = 2,
Bottom = 1,
}
assert!(E::Bottom < E::Top);§How can I implement PartialOrd?
PartialOrd only requires implementation of the partial_cmp method, with the others
generated from default implementations.
However it remains possible to implement the others separately for types which do not have a
total order. For example, for floating point numbers, NaN < 0 == false and NaN >= 0 == false
(cf. IEEE 754-2008 section 5.11).
PartialOrd requires your type to be PartialEq.
If your type is Ord, you can implement partial_cmp by using cmp:
use std::cmp::Ordering;
struct Person {
id: u32,
name: String,
height: u32,
}
impl PartialOrd for Person {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl Ord for Person {
fn cmp(&self, other: &Self) -> Ordering {
self.height.cmp(&other.height)
}
}
impl PartialEq for Person {
fn eq(&self, other: &Self) -> bool {
self.height == other.height
}
}
impl Eq for Person {}You may also find it useful to use partial_cmp on your type’s fields. Here is an example of
Person types who have a floating-point height field that is the only field to be used for
sorting:
use std::cmp::Ordering;
struct Person {
id: u32,
name: String,
height: f64,
}
impl PartialOrd for Person {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.height.partial_cmp(&other.height)
}
}
impl PartialEq for Person {
fn eq(&self, other: &Self) -> bool {
self.height == other.height
}
}§Examples of incorrect PartialOrd implementations
use std::cmp::Ordering;
#[derive(PartialEq, Debug)]
struct Character {
health: u32,
experience: u32,
}
impl PartialOrd for Character {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.health.cmp(&other.health))
}
}
let a = Character {
health: 10,
experience: 5,
};
let b = Character {
health: 10,
experience: 77,
};
// Mistake: `PartialEq` and `PartialOrd` disagree with each other.
assert_eq!(a.partial_cmp(&b).unwrap(), Ordering::Equal); // a == b according to `PartialOrd`.
assert_ne!(a, b); // a != b according to `PartialEq`.§Examples
let x: u32 = 0;
let y: u32 = 1;
assert_eq!(x < y, true);
assert_eq!(x.lt(&y), true);Required Methods§
1.0.0 (const: unstable) · Sourcefn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
This method returns an ordering between self and other values if one exists.
§Examples
use std::cmp::Ordering;
let result = 1.0.partial_cmp(&2.0);
assert_eq!(result, Some(Ordering::Less));
let result = 1.0.partial_cmp(&1.0);
assert_eq!(result, Some(Ordering::Equal));
let result = 2.0.partial_cmp(&1.0);
assert_eq!(result, Some(Ordering::Greater));When comparison is impossible:
let result = f64::NAN.partial_cmp(&1.0);
assert_eq!(result, None);Provided Methods§
1.0.0 (const: unstable) · Sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator.
§Examples
assert_eq!(1.0 < 1.0, false);
assert_eq!(1.0 < 2.0, true);
assert_eq!(2.0 < 1.0, false);1.0.0 (const: unstable) · Sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the
<= operator.
§Examples
assert_eq!(1.0 <= 1.0, true);
assert_eq!(1.0 <= 2.0, true);
assert_eq!(2.0 <= 1.0, false);Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl PartialOrd for !
impl PartialOrd for ()
impl PartialOrd for ATerm
impl PartialOrd for AccessFlags
impl PartialOrd for Alignment
impl PartialOrd for Ansi256Color
impl PartialOrd for AnsiColor
impl PartialOrd for AnyDelimiterCodec
impl PartialOrd for Arg
impl PartialOrd for ArgCursor
impl PartialOrd for AsciiChar
impl PartialOrd for AtFlags
impl PartialOrd for console::utils::Attribute
impl PartialOrd for icu_locale_core::extensions::unicode::attribute::Attribute
impl PartialOrd for Attributes
impl PartialOrd for Authority
Case-insensitive ordering
§Examples
let authority: Authority = "DEF.com".parse().unwrap();
assert!(authority < "ghi.com");
assert!(authority > "abc.com");impl PartialOrd for B0
impl PartialOrd for B1
impl PartialOrd for bstr::bstr::BStr
impl PartialOrd for winnow::stream::bstr::BStr
impl PartialOrd for BString
impl PartialOrd for BarycentricWeightScale
impl PartialOrd for BaudRate
impl PartialOrd for BidiClass
impl PartialOrd for zerocopy::byteorder::BigEndian
impl PartialOrd for byteorder_lite::BigEndian
impl PartialOrd for num_bigint::bigint::BigInt
impl PartialOrd for rustmax::num_bigint::BigInt
impl PartialOrd for num_bigint::biguint::BigUint
impl PartialOrd for rustmax::num_bigint::BigUint
impl PartialOrd for BitType
impl PartialOrd for Bits
impl PartialOrd for BlockSize
impl PartialOrd for BuildMetadata
impl PartialOrd for ByteStr
impl PartialOrd for ByteString
impl PartialOrd for rustmax::bytes::Bytes
impl PartialOrd for winnow::stream::bytes::Bytes
impl PartialOrd for BytesCodec
impl PartialOrd for BytesMut
impl PartialOrd for CStr
impl PartialOrd for CString
impl PartialOrd for CanDerive
impl PartialOrd for CanonicalCombiningClass
impl PartialOrd for Channels
impl PartialOrd for CharCase
impl PartialOrd for CharULE
impl PartialOrd for ClassBytesRange
impl PartialOrd for ClassUnicodeRange
impl PartialOrd for CmsError
impl PartialOrd for CodegenConfig
impl PartialOrd for Color
impl PartialOrd for ColorDateTime
impl PartialOrd for ColorSpace
impl PartialOrd for ControlFlags
impl PartialOrd for Cost
impl PartialOrd for Count
impl PartialOrd for rav1e::cpu_features::rust::CpuFeatureLevel
impl PartialOrd for av_scenechange::cpu::rust::CpuFeatureLevel
impl PartialOrd for CpuidResult
impl PartialOrd for CurrencyType
impl PartialOrd for CxxString
impl PartialOrd for DataColorSpace
impl PartialOrd for DataMarkerAttributes
impl PartialOrd for DataMarkerId
impl PartialOrd for DataMarkerIdHash
impl PartialOrd for DataMarkerInfo
impl PartialOrd for DataRequestMetadata
impl PartialOrd for rustmax::jiff::civil::Date
impl PartialOrd for rustmax::jiff::__jcore::civil::Date
impl PartialOrd for rustmax::toml::value::Date
impl PartialOrd for time::date::Date
impl PartialOrd for rustmax::jiff::civil::DateTime
impl PartialOrd for rustmax::jiff::__jcore::civil::DateTime
impl PartialOrd for rustmax::jiff::__jcore::tz::tzif::DateTime
impl PartialOrd for rustmax::zip::DateTime
impl PartialOrd for Datetime
impl PartialOrd for Days
impl PartialOrd for DeflateLevel
impl PartialOrd for Delay
impl PartialOrd for Direction
impl PartialOrd for DiscoveredItem
impl PartialOrd for DiscoveredItemId
impl PartialOrd for rustmax::jiff::tz::Dst
impl PartialOrd for rustmax::jiff::__jcore::tz::Dst
impl PartialOrd for DtUchHcb
impl PartialOrd for DtUchHsb
impl PartialOrd for DtUchJch
impl PartialOrd for Duration
impl PartialOrd for EastAsianWidth
impl PartialOrd for Effects
impl PartialOrd for Encoding
impl PartialOrd for EnumVariantValue
impl PartialOrd for Eq
impl PartialOrd for EqError
impl PartialOrd for Equal
impl PartialOrd for Errno
impl PartialOrd for rustmax::core::fmt::Error
impl PartialOrd for rustmax::sha2::digest::const_oid::Error
impl PartialOrd for ErrorKind
impl PartialOrd for Event
impl PartialOrd for EventKind
impl PartialOrd for EventMask
impl PartialOrd for ExtensionType
impl PartialOrd for FallocateFlags
impl PartialOrd for FdFlag
impl PartialOrd for FieldId
impl PartialOrd for FieldVisibilityKind
impl PartialOrd for Fields
impl PartialOrd for FipsStatus
impl PartialOrd for FlowArg
impl PartialOrd for FlushArg
impl PartialOrd for FsFlags
impl PartialOrd for GaussianBlurParameters
impl PartialOrd for Ge
impl PartialOrd for GeError
impl PartialOrd for GeneralCategory
impl PartialOrd for GeneralCategoryOutOfBoundsError
impl PartialOrd for GeneralCategoryULE
impl PartialOrd for GraphemeClusterBreak
impl PartialOrd for Greater
impl PartialOrd for Gt
impl PartialOrd for GtError
impl PartialOrd for HangulSyllableType
impl PartialOrd for HeaderValue
impl PartialOrd for HttpDate
impl PartialOrd for ICtCp
impl PartialOrd for rustmax::jiff::civil::ISOWeekDate
impl PartialOrd for rustmax::jiff::__jcore::civil::ISOWeekDate
impl PartialOrd for rustmax::tokio::task::Id
impl PartialOrd for rustmax::clap::Id
impl PartialOrd for Ident
impl PartialOrd for Index8
impl PartialOrd for Index16
impl PartialOrd for Index32
impl PartialOrd for IndicConjunctBreak
impl PartialOrd for IndicSyllabicCategory
impl PartialOrd for InputFlags
impl PartialOrd for InsertError
impl PartialOrd for rustmax::std::time::Instant
impl PartialOrd for rustmax::tokio::time::Instant
impl PartialOrd for IntKind
impl PartialOrd for IntegerRadix
impl PartialOrd for Interest
impl PartialOrd for InterpolationMethod
impl PartialOrd for IpAddr
impl PartialOrd for IpAddrRange
impl PartialOrd for IpNet
impl PartialOrd for IpSubnets
impl PartialOrd for Ipv4Addr
impl PartialOrd for Ipv4AddrRange
impl PartialOrd for Ipv4Net
impl PartialOrd for Ipv4Subnets
impl PartialOrd for Ipv6Addr
impl PartialOrd for Ipv6AddrRange
impl PartialOrd for Ipv6MulticastScope
impl PartialOrd for Ipv6Net
impl PartialOrd for Ipv6Subnets
impl PartialOrd for IsoWeek
impl PartialOrd for JoiningGroup
impl PartialOrd for JoiningType
impl PartialOrd for Jzazbz
impl PartialOrd for Jzczhz
impl PartialOrd for icu_locale_core::extensions::transform::key::Key
impl PartialOrd for icu_locale_core::extensions::unicode::key::Key
impl PartialOrd for Keywords
impl PartialOrd for LCh
impl PartialOrd for Lab
impl PartialOrd for LabelStyle
impl PartialOrd for Language
impl PartialOrd for Layout
impl PartialOrd for LazyStateID
impl PartialOrd for Le
impl PartialOrd for LeError
impl PartialOrd for Less
impl PartialOrd for rustmax::log::Level
impl PartialOrd for tracing_core::metadata::Level
impl PartialOrd for rustmax::log::LevelFilter
impl PartialOrd for tracing_core::metadata::LevelFilter
impl PartialOrd for syn::lifetime::Lifetime
impl PartialOrd for rustmax::syn::Lifetime
impl PartialOrd for LineBreak
impl PartialOrd for rustmax::proc_macro2::LineColumn
impl PartialOrd for rustmax::comrak::nodes::LineColumn
impl PartialOrd for LinesCodec
impl PartialOrd for Literal
impl PartialOrd for zerocopy::byteorder::LittleEndian
impl PartialOrd for byteorder_lite::LittleEndian
impl PartialOrd for LocalFlags
impl PartialOrd for Location<'_>
impl PartialOrd for Lt
impl PartialOrd for LtError
impl PartialOrd for LutType
impl PartialOrd for Luv
impl PartialOrd for MFdFlags
impl PartialOrd for MalformedSize
impl PartialOrd for MatchOptions
impl PartialOrd for Method
impl PartialOrd for Mime
impl PartialOrd for Mode
impl PartialOrd for rustmax::chrono::Month
impl PartialOrd for time::month::Month
impl PartialOrd for Months
impl PartialOrd for NaiveDate
impl PartialOrd for NaiveDateDaysIterator
impl PartialOrd for NaiveDateTime
impl PartialOrd for NaiveDateWeeksIterator
impl PartialOrd for NaiveTime
impl PartialOrd for Ne
impl PartialOrd for NeError
impl PartialOrd for NonMaxUsize
impl PartialOrd for NormalForm
impl PartialOrd for Number
impl PartialOrd for NumericType
impl PartialOrd for OFlag
impl PartialOrd for ObjectIdentifierRef
impl PartialOrd for rustmax::jiff::tz::Offset
impl PartialOrd for rustmax::jiff::__jcore::tz::Offset
impl PartialOrd for rustmax::toml::value::Offset
impl PartialOrd for OffsetDateTime
impl PartialOrd for Oklab
impl PartialOrd for Oklch
impl PartialOrd for Options
impl PartialOrd for Order
impl PartialOrd for Ordering
impl PartialOrd for rustmax::std::ffi::OsStr
impl PartialOrd for rustmax::clap::builder::OsStr
impl PartialOrd for OsString
impl PartialOrd for Other
impl PartialOrd for OutputFlags
impl PartialOrd for ParsingOptions
impl PartialOrd for rustmax::std::path::Path
impl PartialOrd for PathAndQuery
impl PartialOrd for rustmax::std::path::PathBuf
impl PartialOrd for Pattern
impl PartialOrd for regex_automata::util::primitives::PatternID
impl PartialOrd for aho_corasick::util::primitives::PatternID
impl PartialOrd for PersistedSeed
impl PartialOrd for PhantomPinned
impl PartialOrd for Pid
impl PartialOrd for PlainDateTime
impl PartialOrd for PollFlags
impl PartialOrd for PollTimeout
impl PartialOrd for Position
impl PartialOrd for PosixFadviseAdvice
impl PartialOrd for PosixSpawnFlags
impl PartialOrd for PotentialCodePoint
impl PartialOrd for PotentialUtf8
impl PartialOrd for PotentialUtf16
impl PartialOrd for PrctlMCEKillPolicy
impl PartialOrd for PredictionMode
impl PartialOrd for PredictionModesSetting
impl PartialOrd for Prerelease
impl PartialOrd for Private
impl PartialOrd for ProfileClass
impl PartialOrd for ProfileVersion
impl PartialOrd for shlex::QuoteError
impl PartialOrd for shlex::QuoteError
impl PartialOrd for Ready
impl PartialOrd for Reason
impl PartialOrd for ReasonPhrase
impl PartialOrd for RecursiveMode
impl PartialOrd for Region
impl PartialOrd for RenameFlags
impl PartialOrd for RenderingIntent
impl PartialOrd for Reset
impl PartialOrd for ResolveFlag
impl PartialOrd for RestoreMethod
impl PartialOrd for RgbColor
impl PartialOrd for RustEdition
impl PartialOrd for RustTarget
impl PartialOrd for SFlag
impl PartialOrd for SGRComplexityLevel
impl PartialOrd for SaFlags
impl PartialOrd for ScalarKind
impl PartialOrd for rav1e::api::config::speedsettings::SceneDetectionSpeed
impl PartialOrd for av_scenechange::SceneDetectionSpeed
impl PartialOrd for icu_locale_core::subtags::script::Script
impl PartialOrd for icu_properties::props::Script
impl PartialOrd for SealFlag
impl PartialOrd for SegmentationLevel
impl PartialOrd for SentenceBreak
impl PartialOrd for SetArg
impl PartialOrd for Severity
impl PartialOrd for SfdFlags
impl PartialOrd for SigId
impl PartialOrd for SigmaskHow
impl PartialOrd for rustmax::jiff::__jcore::bounds::Sign
impl PartialOrd for num_bigint::bigint::Sign
impl PartialOrd for rustmax::num_bigint::Sign
impl PartialOrd for Signal
impl PartialOrd for rustmax::jiff::SignedDuration
impl PartialOrd for time::signed_duration::SignedDuration
impl PartialOrd for SmallIndex
impl PartialOrd for SocketAddr
impl PartialOrd for SocketAddrV4
impl PartialOrd for SocketAddrV6
impl PartialOrd for Sourcepos
impl PartialOrd for regex_syntax::ast::Span
impl PartialOrd for toml_parser::source::Span
impl PartialOrd for SpecialCharacterIndices
impl PartialOrd for Srlab2
impl PartialOrd for regex_automata::util::primitives::StateID
impl PartialOrd for aho_corasick::util::primitives::StateID
impl PartialOrd for StatusCode
impl PartialOrd for Str
impl PartialOrd for Strategy
impl PartialOrd for String
impl PartialOrd for StringParam
impl PartialOrd for Style
impl PartialOrd for StyledStr
impl PartialOrd for SubdivisionId
impl PartialOrd for SubdivisionSuffix
impl PartialOrd for icu_locale_core::extensions::private::other::Subtag
impl PartialOrd for icu_locale_core::subtags::Subtag
impl PartialOrd for SystemTime
impl PartialOrd for TechnologySignatures
impl PartialOrd for Text
impl PartialOrd for rustmax::jiff::civil::Time
impl PartialOrd for rustmax::jiff::__jcore::civil::Time
impl PartialOrd for rustmax::toml::value::Time
impl PartialOrd for time::time::Time
impl PartialOrd for TimeDelta
impl PartialOrd for TimeNanosecond
impl PartialOrd for TimeSecond
impl PartialOrd for TimeSpec
impl PartialOrd for TimeVal
impl PartialOrd for Timespec
impl PartialOrd for rustmax::jiff::Timestamp
impl PartialOrd for rustmax::jiff::__jcore::Timestamp
impl PartialOrd for rustmax::jiff::__jcore::tz::tzif::Timestamp
impl PartialOrd for time::timestamp::Timestamp
impl PartialOrd for mio::token::Token
impl PartialOrd for toml_parser::lexer::token::Token
impl PartialOrd for TokenKind
impl PartialOrd for TransformOptions
impl PartialOrd for Transformations
impl PartialOrd for TxType
impl PartialOrd for TypeId
impl PartialOrd for TypedComponents<'_>
impl PartialOrd for TypedPathBuf
impl PartialOrd for UTerm
impl PartialOrd for regex_automata::util::alphabet::Unit
impl PartialOrd for rustmax::jiff::Unit
impl PartialOrd for UnixComponents<'_>
impl PartialOrd for UnixEpochDay
impl PartialOrd for UnixTime
impl PartialOrd for Url
URLs compare like their serialization.
impl PartialOrd for UtcDateTime
impl PartialOrd for UtcOffset
impl PartialOrd for Utf8Bytes
impl PartialOrd for Utf8Range
impl PartialOrd for Utf8Sequence
impl PartialOrd for Utf8TypedComponents<'_>
impl PartialOrd for Utf8TypedPathBuf
impl PartialOrd for Utf8UnixComponents<'_>
impl PartialOrd for Utf8WindowsComponents<'_>
impl PartialOrd for icu_locale_core::extensions::transform::value::Value
impl PartialOrd for icu_locale_core::extensions::unicode::value::Value
impl PartialOrd for rustmax::tera::Value
impl PartialOrd for ValueSource
impl PartialOrd for Variant
impl PartialOrd for VariantId
impl PartialOrd for Variants
impl PartialOrd for rustmax::http::Version
impl PartialOrd for clang_sys::Version
impl PartialOrd for rustmax::reqwest::tls::Version
impl PartialOrd for rustmax::semver::Version
impl PartialOrd for VerticalOrientation
impl PartialOrd for WaitPidFlag
impl PartialOrd for WatchDescriptor
impl PartialOrd for WatchMask
impl PartialOrd for WeekdaySet
impl PartialOrd for WindowsComponents<'_>
impl PartialOrd for WordBreak
impl PartialOrd for Ych
impl PartialOrd for Yrg
impl PartialOrd for Z0
impl PartialOrd for Zoned
impl PartialOrd for bf16
impl PartialOrd for bool
impl PartialOrd for char
impl PartialOrd for f16
impl PartialOrd for f16
impl PartialOrd for f32
impl PartialOrd for f64
impl PartialOrd for f16b
impl PartialOrd for f128
impl PartialOrd for i8
impl PartialOrd for i16
impl PartialOrd for i32
impl PartialOrd for i64
impl PartialOrd for i128
impl PartialOrd for isize
impl PartialOrd for str
Implements comparison operations on strings.
Strings are compared lexicographically by their byte values. This compares Unicode code
points based on their positions in the code charts. This is not necessarily the same as
“alphabetical” order, which varies by language and locale. Comparing strings according to
culturally-accepted standards requires locale-specific data that is outside the scope of
the str type.
impl PartialOrd for u8
impl PartialOrd for u16
impl PartialOrd for u32
impl PartialOrd for u64
impl PartialOrd for u128
impl PartialOrd for usize
impl PartialOrd<&ByteStr> for ByteString
impl PartialOrd<&ByteStr> for Cow<'_, ByteStr>
impl PartialOrd<&ByteStr> for Cow<'_, [u8]>
impl PartialOrd<&ByteStr> for Cow<'_, str>
impl PartialOrd<&OsStr> for Cow<'_, OsStr>
impl PartialOrd<&OsStr> for Cow<'_, Path>
impl PartialOrd<&OsStr> for OsString
impl PartialOrd<&OsStr> for rustmax::std::path::Path
impl PartialOrd<&OsStr> for rustmax::std::path::PathBuf
impl PartialOrd<&Path> for Cow<'_, OsStr>
impl PartialOrd<&Path> for Cow<'_, Path>
impl PartialOrd<&Path> for rustmax::std::ffi::OsStr
impl PartialOrd<&Path> for OsString
impl PartialOrd<&Path> for rustmax::std::path::PathBuf
impl PartialOrd<&str> for Authority
impl PartialOrd<&str> for PathAndQuery
impl PartialOrd<Authority> for &str
impl PartialOrd<Authority> for String
impl PartialOrd<Authority> for str
impl PartialOrd<ByteStr> for ByteString
impl PartialOrd<ByteString> for &ByteStr
impl PartialOrd<ByteString> for ByteStr
impl PartialOrd<ByteString> for Cow<'_, ByteStr>
impl PartialOrd<ByteString> for Cow<'_, [u8]>
impl PartialOrd<ByteString> for Cow<'_, str>
impl PartialOrd<Bytes> for &[u8]
impl PartialOrd<Bytes> for &str
impl PartialOrd<Bytes> for String
impl PartialOrd<Bytes> for Vec<u8>
impl PartialOrd<Bytes> for [u8]
impl PartialOrd<Bytes> for str
impl PartialOrd<BytesMut> for &[u8]
impl PartialOrd<BytesMut> for &str
impl PartialOrd<BytesMut> for String
impl PartialOrd<BytesMut> for Vec<u8>
impl PartialOrd<BytesMut> for [u8]
impl PartialOrd<BytesMut> for str
impl PartialOrd<Cow<'_, ByteStr>> for &ByteStr
impl PartialOrd<Cow<'_, ByteStr>> for ByteString
impl PartialOrd<Cow<'_, OsStr>> for &rustmax::std::ffi::OsStr
impl PartialOrd<Cow<'_, OsStr>> for &rustmax::std::path::Path
impl PartialOrd<Cow<'_, OsStr>> for rustmax::std::ffi::OsStr
impl PartialOrd<Cow<'_, OsStr>> for OsString
impl PartialOrd<Cow<'_, OsStr>> for rustmax::std::path::Path
impl PartialOrd<Cow<'_, OsStr>> for rustmax::std::path::PathBuf
impl PartialOrd<Cow<'_, Path>> for &rustmax::std::ffi::OsStr
impl PartialOrd<Cow<'_, Path>> for &rustmax::std::path::Path
impl PartialOrd<Cow<'_, Path>> for rustmax::std::ffi::OsStr
impl PartialOrd<Cow<'_, Path>> for OsString
impl PartialOrd<Cow<'_, Path>> for rustmax::std::path::Path
impl PartialOrd<Cow<'_, Path>> for rustmax::std::path::PathBuf
impl PartialOrd<Cow<'_, [u8]>> for &ByteStr
impl PartialOrd<Cow<'_, [u8]>> for ByteString
impl PartialOrd<Cow<'_, str>> for &ByteStr
impl PartialOrd<Cow<'_, str>> for ByteString
impl PartialOrd<Duration> for time::signed_duration::SignedDuration
impl PartialOrd<HeaderValue> for &HeaderValue
impl PartialOrd<HeaderValue> for &str
impl PartialOrd<HeaderValue> for String
impl PartialOrd<HeaderValue> for [u8]
impl PartialOrd<HeaderValue> for str
impl PartialOrd<IpAddr> for Ipv4Addr
impl PartialOrd<IpAddr> for Ipv6Addr
impl PartialOrd<Ipv4Addr> for IpAddr
impl PartialOrd<Ipv6Addr> for IpAddr
impl PartialOrd<Level> for rustmax::log::LevelFilter
impl PartialOrd<Level> for tracing_core::metadata::LevelFilter
impl PartialOrd<LevelFilter> for rustmax::log::Level
impl PartialOrd<LevelFilter> for tracing_core::metadata::Level
impl PartialOrd<OffsetDateTime> for SystemTime
impl PartialOrd<OffsetDateTime> for time::timestamp::Timestamp
impl PartialOrd<OffsetDateTime> for UtcDateTime
impl PartialOrd<OsStr> for &rustmax::std::path::Path
impl PartialOrd<OsStr> for Cow<'_, OsStr>
impl PartialOrd<OsStr> for Cow<'_, Path>
impl PartialOrd<OsStr> for OsString
impl PartialOrd<OsStr> for rustmax::std::path::Path
impl PartialOrd<OsStr> for rustmax::std::path::PathBuf
impl PartialOrd<OsString> for &rustmax::std::ffi::OsStr
impl PartialOrd<OsString> for &rustmax::std::path::Path
impl PartialOrd<OsString> for Cow<'_, OsStr>
impl PartialOrd<OsString> for Cow<'_, Path>
impl PartialOrd<OsString> for rustmax::std::ffi::OsStr
impl PartialOrd<OsString> for rustmax::std::path::Path
impl PartialOrd<OsString> for rustmax::std::path::PathBuf
impl PartialOrd<Path> for &rustmax::std::ffi::OsStr
impl PartialOrd<Path> for Cow<'_, OsStr>
impl PartialOrd<Path> for Cow<'_, Path>
impl PartialOrd<Path> for rustmax::std::ffi::OsStr
impl PartialOrd<Path> for OsString
impl PartialOrd<Path> for rustmax::std::path::PathBuf
impl PartialOrd<PathAndQuery> for &str
impl PartialOrd<PathAndQuery> for String
impl PartialOrd<PathAndQuery> for str
impl PartialOrd<PathBuf> for &rustmax::std::ffi::OsStr
impl PartialOrd<PathBuf> for &rustmax::std::path::Path
impl PartialOrd<PathBuf> for Cow<'_, OsStr>
impl PartialOrd<PathBuf> for Cow<'_, Path>
impl PartialOrd<PathBuf> for rustmax::std::ffi::OsStr
impl PartialOrd<PathBuf> for OsString
impl PartialOrd<PathBuf> for rustmax::std::path::Path
impl PartialOrd<PotentialCodePoint> for char
impl PartialOrd<PotentialUtf8> for str
impl PartialOrd<SignedDuration> for Duration
impl PartialOrd<String> for Authority
impl PartialOrd<String> for rustmax::bytes::Bytes
impl PartialOrd<String> for BytesMut
impl PartialOrd<String> for HeaderValue
impl PartialOrd<String> for PathAndQuery
impl PartialOrd<SystemTime> for OffsetDateTime
impl PartialOrd<SystemTime> for time::timestamp::Timestamp
impl PartialOrd<SystemTime> for UtcDateTime
impl PartialOrd<Timestamp> for OffsetDateTime
impl PartialOrd<Timestamp> for SystemTime
impl PartialOrd<Timestamp> for UtcDateTime
impl PartialOrd<UtcDateTime> for OffsetDateTime
impl PartialOrd<UtcDateTime> for SystemTime
impl PartialOrd<UtcDateTime> for time::timestamp::Timestamp
impl PartialOrd<Vec<u8>> for rustmax::bytes::Bytes
impl PartialOrd<Vec<u8>> for BytesMut
impl PartialOrd<[u8]> for rustmax::bytes::Bytes
impl PartialOrd<[u8]> for BytesMut
impl PartialOrd<[u8]> for HeaderValue
impl PartialOrd<char> for PotentialCodePoint
impl PartialOrd<str> for Authority
impl PartialOrd<str> for rustmax::bytes::Bytes
impl PartialOrd<str> for BytesMut
impl PartialOrd<str> for HeaderValue
impl PartialOrd<str> for rustmax::std::ffi::OsStr
impl PartialOrd<str> for OsString
impl PartialOrd<str> for PathAndQuery
impl PartialOrd<str> for PotentialUtf8
impl<'a, 'b, T> PartialOrd<&'b Path<T>> for Cow<'a, Path<T>>where
T: Encoding,
impl<'a, 'b, T> PartialOrd<&'b Utf8Path<T>> for Cow<'a, Utf8Path<T>>where
T: Utf8Encoding,
impl<'a, 'b, T> PartialOrd<Cow<'a, Path<T>>> for &'b typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, 'b, T> PartialOrd<Cow<'a, Utf8Path<T>>> for &'b Utf8Path<T>where
T: Utf8Encoding,
impl<'a, B> PartialOrd for Cow<'a, B>
impl<'a, T, F> PartialOrd for VarZeroVec<'a, T, F>
impl<'a, T> PartialOrd for ZeroVec<'a, T>where
T: AsULE + PartialOrd,
impl<'a, T> PartialOrd<&'a Path<T>> for typed_path::common::non_utf8::pathbuf::PathBuf<T>where
T: Encoding,
impl<'a, T> PartialOrd<&'a Path<T>> for Vec<u8>where
T: Encoding,
impl<'a, T> PartialOrd<&'a Path<T>> for [u8]where
T: Encoding,
impl<'a, T> PartialOrd<&'a T> for rustmax::bytes::Bytes
impl<'a, T> PartialOrd<&'a T> for BytesMut
impl<'a, T> PartialOrd<&'a Utf8Path<T>> for Stringwhere
T: Utf8Encoding,
impl<'a, T> PartialOrd<&'a Utf8Path<T>> for Utf8PathBuf<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<&'a Utf8Path<T>> for strwhere
T: Utf8Encoding,
impl<'a, T> PartialOrd<&'a [u8]> for typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, T> PartialOrd<&'a [u8]> for typed_path::common::non_utf8::pathbuf::PathBuf<T>where
T: Encoding,
impl<'a, T> PartialOrd<&'a str> for Utf8Path<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<&'a str> for Utf8PathBuf<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Cow<'a, Path<T>>> for typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, T> PartialOrd<Cow<'a, Path<T>>> for typed_path::common::non_utf8::pathbuf::PathBuf<T>where
T: Encoding,
impl<'a, T> PartialOrd<Cow<'a, Utf8Path<T>>> for Utf8Path<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Cow<'a, Utf8Path<T>>> for Utf8PathBuf<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Path<T>> for &'a [u8]where
T: Encoding,
impl<'a, T> PartialOrd<Path<T>> for Cow<'a, Path<T>>where
T: Encoding,
impl<'a, T> PartialOrd<PathBuf<T>> for &'a typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, T> PartialOrd<PathBuf<T>> for &'a [u8]where
T: Encoding,
impl<'a, T> PartialOrd<PathBuf<T>> for Cow<'a, Path<T>>where
T: Encoding,
impl<'a, T> PartialOrd<String> for &'a Utf8Path<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Utf8Path<T>> for &'a strwhere
T: Utf8Encoding,
impl<'a, T> PartialOrd<Utf8Path<T>> for Cow<'a, Utf8Path<T>>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Utf8PathBuf<T>> for &'a Utf8Path<T>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Utf8PathBuf<T>> for &'a strwhere
T: Utf8Encoding,
impl<'a, T> PartialOrd<Utf8PathBuf<T>> for Cow<'a, Utf8Path<T>>where
T: Utf8Encoding,
impl<'a, T> PartialOrd<Vec<u8>> for &'a typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, T> PartialOrd<[u8]> for &'a typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<'a, T> PartialOrd<str> for &'a Utf8Path<T>where
T: Utf8Encoding,
impl<'a, V> PartialOrd for VarZeroCow<'a, V>
impl<'a, const N: usize> PartialOrd<&'a [u8; N]> for bstr::bstr::BStr
impl<'a, const N: usize> PartialOrd<&'a [u8; N]> for BString
impl<'a, const N: usize> PartialOrd<BStr> for &'a [u8; N]
impl<'a, const N: usize> PartialOrd<BStr> for [u8; N]
impl<'a, const N: usize> PartialOrd<BString> for &'a [u8; N]
impl<'a, const N: usize> PartialOrd<BString> for [u8; N]
impl<'a, const N: usize> PartialOrd<[u8; N]> for bstr::bstr::BStr
impl<'a, const N: usize> PartialOrd<[u8; N]> for BString
impl<'a> PartialOrd for Component<'a>
impl<'a> PartialOrd for Components<'a>
impl<'a> PartialOrd for syn::buffer::Cursor<'a>
impl<'a> PartialOrd for rustmax::syn::buffer::Cursor<'a>
impl<'a> PartialOrd for rustmax::tera::value::Key<'a>
impl<'a> PartialOrd for Metadata<'a>
impl<'a> PartialOrd for MetadataBuilder<'a>
impl<'a> PartialOrd for Name<'a>
impl<'a> PartialOrd for PhantomContravariantLifetime<'a>
impl<'a> PartialOrd for PhantomCovariantLifetime<'a>
impl<'a> PartialOrd for PhantomInvariantLifetime<'a>
impl<'a> PartialOrd for Prefix<'a>
impl<'a> PartialOrd for PrefixComponent<'a>
impl<'a> PartialOrd for TypedComponent<'a>
impl<'a> PartialOrd for TypedPath<'a>
impl<'a> PartialOrd for UnixComponent<'a>
impl<'a> PartialOrd for Utf8TypedComponent<'a>
impl<'a> PartialOrd for Utf8TypedPath<'a>
impl<'a> PartialOrd for Utf8UnixComponent<'a>
impl<'a> PartialOrd for Utf8WindowsComponent<'a>
impl<'a> PartialOrd for Utf8WindowsPrefix<'a>
impl<'a> PartialOrd for Utf8WindowsPrefixComponent<'a>
impl<'a> PartialOrd for WindowsComponent<'a>
impl<'a> PartialOrd for WindowsPrefix<'a>
impl<'a> PartialOrd for WindowsPrefixComponent<'a>
impl<'a> PartialOrd<&'a BStr> for BString
impl<'a> PartialOrd<&'a BStr> for String
impl<'a> PartialOrd<&'a BStr> for Vec<u8>
impl<'a> PartialOrd<&'a [u8]> for bstr::bstr::BStr
impl<'a> PartialOrd<&'a [u8]> for winnow::stream::bstr::BStr
impl<'a> PartialOrd<&'a [u8]> for BString
impl<'a> PartialOrd<&'a [u8]> for winnow::stream::bytes::Bytes
impl<'a> PartialOrd<&'a str> for bstr::bstr::BStr
impl<'a> PartialOrd<&'a str> for winnow::stream::bstr::BStr
impl<'a> PartialOrd<&'a str> for BString
impl<'a> PartialOrd<&'a str> for winnow::stream::bytes::Bytes
impl<'a> PartialOrd<BStr> for &'a [u8]
impl<'a> PartialOrd<BStr> for &'a [u8]
impl<'a> PartialOrd<BStr> for &'a str
impl<'a> PartialOrd<BStr> for &'a str
impl<'a> PartialOrd<BStr> for BString
impl<'a> PartialOrd<BStr> for String
impl<'a> PartialOrd<BStr> for Vec<u8>
impl<'a> PartialOrd<BStr> for [u8]
impl<'a> PartialOrd<BStr> for [u8]
impl<'a> PartialOrd<BStr> for str
impl<'a> PartialOrd<BStr> for str
impl<'a> PartialOrd<BString> for &'a bstr::bstr::BStr
impl<'a> PartialOrd<BString> for &'a [u8]
impl<'a> PartialOrd<BString> for &'a str
impl<'a> PartialOrd<BString> for bstr::bstr::BStr
impl<'a> PartialOrd<BString> for String
impl<'a> PartialOrd<BString> for Vec<u8>
impl<'a> PartialOrd<BString> for [u8]
impl<'a> PartialOrd<BString> for str
impl<'a> PartialOrd<Bytes> for &'a [u8]
impl<'a> PartialOrd<Bytes> for &'a str
impl<'a> PartialOrd<Bytes> for [u8]
impl<'a> PartialOrd<Bytes> for str
impl<'a> PartialOrd<String> for &'a bstr::bstr::BStr
impl<'a> PartialOrd<String> for bstr::bstr::BStr
impl<'a> PartialOrd<String> for BString
impl<'a> PartialOrd<Vec<u8>> for &'a bstr::bstr::BStr
impl<'a> PartialOrd<Vec<u8>> for bstr::bstr::BStr
impl<'a> PartialOrd<Vec<u8>> for BString
impl<'a> PartialOrd<Zoned> for &'a Zoned
impl<'a> PartialOrd<[u8]> for bstr::bstr::BStr
impl<'a> PartialOrd<[u8]> for winnow::stream::bstr::BStr
impl<'a> PartialOrd<[u8]> for BString
impl<'a> PartialOrd<[u8]> for winnow::stream::bytes::Bytes
impl<'a> PartialOrd<str> for bstr::bstr::BStr
impl<'a> PartialOrd<str> for winnow::stream::bstr::BStr
impl<'a> PartialOrd<str> for BString
impl<'a> PartialOrd<str> for winnow::stream::bytes::Bytes
impl<'d> PartialOrd for TimeZoneName<'d>
impl<'k, 'v> PartialOrd for Params<'k, 'v>
impl<'s, T> PartialOrd for SliceVec<'s, T>where
T: PartialOrd,
impl<'s> PartialOrd for ParsedArg<'s>
impl<'s> PartialOrd for TomlKey<'s>
impl<'s> PartialOrd for TomlString<'s>
impl<A, B, C, D, E, F, Format> PartialOrd for Tuple6VarULE<A, B, C, D, E, F, Format>where
A: PartialOrd + VarULE + ?Sized,
B: PartialOrd + VarULE + ?Sized,
C: PartialOrd + VarULE + ?Sized,
D: PartialOrd + VarULE + ?Sized,
E: PartialOrd + VarULE + ?Sized,
F: PartialOrd + VarULE + ?Sized,
Format: VarZeroVecFormat,
impl<A, B, C, D, E, F> PartialOrd for Tuple6ULE<A, B, C, D, E, F>where
A: PartialOrd + ULE,
B: PartialOrd + ULE,
C: PartialOrd + ULE,
D: PartialOrd + ULE,
E: PartialOrd + ULE,
F: PartialOrd + ULE,
impl<A, B, C, D, E, Format> PartialOrd for Tuple5VarULE<A, B, C, D, E, Format>where
A: PartialOrd + VarULE + ?Sized,
B: PartialOrd + VarULE + ?Sized,
C: PartialOrd + VarULE + ?Sized,
D: PartialOrd + VarULE + ?Sized,
E: PartialOrd + VarULE + ?Sized,
Format: VarZeroVecFormat,
impl<A, B, C, D, E> PartialOrd for Tuple5ULE<A, B, C, D, E>where
A: PartialOrd + ULE,
B: PartialOrd + ULE,
C: PartialOrd + ULE,
D: PartialOrd + ULE,
E: PartialOrd + ULE,
impl<A, B, C, D, Format> PartialOrd for Tuple4VarULE<A, B, C, D, Format>where
A: PartialOrd + VarULE + ?Sized,
B: PartialOrd + VarULE + ?Sized,
C: PartialOrd + VarULE + ?Sized,
D: PartialOrd + VarULE + ?Sized,
Format: VarZeroVecFormat,
impl<A, B, C, D> PartialOrd for Tuple4ULE<A, B, C, D>
impl<A, B, C, Format> PartialOrd for Tuple3VarULE<A, B, C, Format>where
A: PartialOrd + VarULE + ?Sized,
B: PartialOrd + VarULE + ?Sized,
C: PartialOrd + VarULE + ?Sized,
Format: VarZeroVecFormat,
impl<A, B, C> PartialOrd for Tuple3ULE<A, B, C>
impl<A, B, Format> PartialOrd for Tuple2VarULE<A, B, Format>
impl<A, B> PartialOrd for Tuple2ULE<A, B>
impl<A, B> PartialOrd for VarTuple<A, B>where
A: PartialOrd,
B: PartialOrd,
impl<A, B> PartialOrd<&B> for &A
impl<A, B> PartialOrd<&mut B> for &mut A
impl<A, T> PartialOrd for Aligned<A, T>where
A: Alignment,
T: PartialOrd,
impl<A, V> PartialOrd for VarTupleULE<A, V>
impl<A> PartialOrd for tinyvec::arrayvec::ArrayVec<A>
impl<A> PartialOrd for SmallVec<A>
impl<A> PartialOrd for TinyVec<A>
impl<B> PartialOrd for BitSet<B>where
B: BitBlock,
impl<B> PartialOrd for BitVec<B>where
B: BitBlock,
impl<Dyn> PartialOrd for DynMetadata<Dyn>where
Dyn: ?Sized,
impl<F> PartialOrd for Fwhere
F: FnPtr,
impl<I> PartialOrd for LocatingSlice<I>where
I: PartialOrd,
impl<I> PartialOrd for Partial<I>where
I: PartialOrd,
impl<Item> PartialOrd for AllEqualValueError<Item>where
Item: PartialOrd,
impl<K, V, A> PartialOrd for BTreeMap<K, V, A>
impl<K, V, S> PartialOrd for LiteMap<K, V, S>
impl<K, V> PartialOrd for indexmap::map::slice::Slice<K, V>where
K: PartialOrd,
V: PartialOrd,
impl<L, R> PartialOrd for Either<L, R>where
L: PartialOrd,
R: PartialOrd,
impl<O> PartialOrd for F32<O>where
O: ByteOrder,
impl<O> PartialOrd for F64<O>where
O: ByteOrder,
impl<O> PartialOrd for I16<O>where
O: ByteOrder,
impl<O> PartialOrd for I32<O>where
O: ByteOrder,
impl<O> PartialOrd for I64<O>where
O: ByteOrder,
impl<O> PartialOrd for I128<O>where
O: ByteOrder,
impl<O> PartialOrd for Isize<O>where
O: ByteOrder,
impl<O> PartialOrd for U16<O>where
O: ByteOrder,
impl<O> PartialOrd for U32<O>where
O: ByteOrder,
impl<O> PartialOrd for U64<O>where
O: ByteOrder,
impl<O> PartialOrd for U128<O>where
O: ByteOrder,
impl<O> PartialOrd for Usize<O>where
O: ByteOrder,
impl<O> PartialOrd<i16> for I16<O>where
O: ByteOrder,
impl<O> PartialOrd<i32> for I32<O>where
O: ByteOrder,
impl<O> PartialOrd<i64> for I64<O>where
O: ByteOrder,
impl<O> PartialOrd<i128> for I128<O>where
O: ByteOrder,
impl<O> PartialOrd<isize> for Isize<O>where
O: ByteOrder,
impl<O> PartialOrd<u16> for U16<O>where
O: ByteOrder,
impl<O> PartialOrd<u32> for U32<O>where
O: ByteOrder,
impl<O> PartialOrd<u64> for U64<O>where
O: ByteOrder,
impl<O> PartialOrd<u128> for U128<O>where
O: ByteOrder,
impl<O> PartialOrd<usize> for Usize<O>where
O: ByteOrder,
impl<Ptr, Q> PartialOrd<Pin<Q>> for Pin<Ptr>
impl<S> PartialOrd for Host<S>where
S: PartialOrd,
impl<Storage> PartialOrd for linux_raw_sys::general::__BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
impl<Storage> PartialOrd for aws_lc_sys::universal_crypto::__BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
impl<T, A1, A2> PartialOrd<Vec<T, A2>> for Vec<T, A1>
Implements comparison of vectors, lexicographically.
impl<T, A> PartialOrd for ABox<T, A>
impl<T, A> PartialOrd for AVec<T, A>where
T: PartialOrd,
A: Alignment,
impl<T, A> PartialOrd for Abgr<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for Arc<T, A>
impl<T, A> PartialOrd for Argb<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for BTreeSet<T, A>where
T: PartialOrd,
A: AllocatorClone,
impl<T, A> PartialOrd for Bgra<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for Box<T, A>
impl<T, A> PartialOrd for GrayA<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for GrayAlpha_v08<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for LinkedList<T, A>where
T: PartialOrd,
A: Allocator,
impl<T, A> PartialOrd for Rc<T, A>
impl<T, A> PartialOrd for Rgba<T, A>where
T: PartialOrd,
A: PartialOrd,
impl<T, A> PartialOrd for UniqueArc<T, A>
impl<T, A> PartialOrd for UniqueRc<T, A>
impl<T, A> PartialOrd for VecDeque<T, A>where
T: PartialOrd,
A: Allocator,
impl<T, B> PartialOrd for Ref<B, T>
impl<T, E> PartialOrd for Result<T, E>where
T: PartialOrd,
E: PartialOrd,
impl<T, F> PartialOrd for VarZeroSlice<T, F>
impl<T, N> PartialOrd for GenericArray<T, N>where
T: PartialOrd,
N: ArrayLength<T>,
impl<T, S> PartialOrd for Checkpoint<T, S>where
T: PartialOrd,
impl<T, U> PartialOrd for Array<T, U>where
T: PartialOrd,
U: ArraySize,
impl<T, U> PartialOrd<SyncView<U>> for SyncView<T>
impl<T, const CAP: usize> PartialOrd for arrayvec::arrayvec::ArrayVec<T, CAP>where
T: PartialOrd,
impl<T, const N: usize> PartialOrd for Mask<T, N>where
T: MaskElement + PartialOrd,
impl<T, const N: usize> PartialOrd for Simd<T, N>where
T: SimdElement + PartialOrd,
Lexicographic order. For the SIMD elementwise minimum and maximum, use simd_min and simd_max instead.
impl<T, const N: usize> PartialOrd for [T; N]where
T: PartialOrd,
Implements comparison of arrays lexicographically.
impl<T, const VARIANT: u32, const FIELD: u32> PartialOrd for FieldRepresentingType<T, VARIANT, FIELD>where
T: ?Sized,
impl<T> PartialOrd for (T₁, T₂, …, Tₙ)where
T: PartialOrd,
This trait is implemented for tuples up to twelve items long.
impl<T> PartialOrd for *const Twhere
T: ?Sized,
Pointer comparison is by address, as produced by the <*const T>::addr method.
impl<T> PartialOrd for *mut Twhere
T: ?Sized,
Pointer comparison is by address, as produced by the <*mut T>::addr method.
impl<T> PartialOrd for AllowStdIo<T>where
T: PartialOrd,
impl<T> PartialOrd for Bgr<T>where
T: PartialOrd,
impl<T> PartialOrd for endian_type::BigEndian<T>where
T: PartialOrd,
impl<T> PartialOrd for CapacityError<T>where
T: PartialOrd,
impl<T> PartialOrd for Cell<T>where
T: PartialOrd + Copy,
impl<T> PartialOrd for Gray_v08<T>where
T: PartialOrd,
impl<T> PartialOrd for Grb<T>where
T: PartialOrd,
impl<T> PartialOrd for endian_type::LittleEndian<T>where
T: PartialOrd,
impl<T> PartialOrd for LossyWrap<T>where
T: PartialOrd,
impl<T> PartialOrd for ManuallyDrop<T>where
T: PartialOrd + ?Sized,
impl<T> PartialOrd for NonNull<T>where
T: ?Sized,
impl<T> PartialOrd for NonZero<T>where
T: ZeroablePrimitive + PartialOrd,
impl<T> PartialOrd for Option<T>where
T: PartialOrd,
impl<T> PartialOrd for typed_path::common::non_utf8::path::Path<T>where
T: Encoding,
impl<T> PartialOrd for typed_path::common::non_utf8::pathbuf::PathBuf<T>where
T: Encoding,
impl<T> PartialOrd for PhantomContravariant<T>where
T: ?Sized,
impl<T> PartialOrd for PhantomCovariant<T>where
T: ?Sized,
impl<T> PartialOrd for PhantomData<T>where
T: ?Sized,
impl<T> PartialOrd for PhantomInvariant<T>where
T: ?Sized,
impl<T> PartialOrd for Poll<T>where
T: PartialOrd,
impl<T> PartialOrd for Ratio<T>
impl<T> PartialOrd for RefCell<T>where
T: PartialOrd + ?Sized,
impl<T> PartialOrd for Resettable<T>where
T: PartialOrd,
impl<T> PartialOrd for Reverse<T>where
T: PartialOrd,
impl<T> PartialOrd for rgb::formats::rgb::Rgb<T>where
T: PartialOrd,
impl<T> PartialOrd for moxcms::rgb::Rgb<T>where
T: PartialOrd,
impl<T> PartialOrd for Saturating<T>where
T: PartialOrd,
impl<T> PartialOrd for indexmap::set::slice::Slice<T>where
T: PartialOrd,
impl<T> PartialOrd for Spanned<T>where
T: PartialOrd,
impl<T> PartialOrd for TryWriteableInfallibleAsWriteable<T>where
T: PartialOrd,
impl<T> PartialOrd for Unalign<T>where
T: Unaligned + PartialOrd,
impl<T> PartialOrd for UniquePtr<T>where
T: PartialOrd + UniquePtrTarget,
impl<T> PartialOrd for Utf8Path<T>where
T: Utf8Encoding,
impl<T> PartialOrd for Utf8PathBuf<T>where
T: Utf8Encoding,
impl<T> PartialOrd for Wrapping<T>where
T: PartialOrd,
impl<T> PartialOrd for WriteableAsTryWriteableInfallible<T>where
T: PartialOrd,
impl<T> PartialOrd for ZeroSlice<T>where
T: AsULE + PartialOrd,
impl<T> PartialOrd for [T]where
T: PartialOrd,
Implements comparison of slices lexicographically.