std::cmp module

E440682

The std::cmp module in Rust provides traits and functions for ordering and equality comparisons, including tools like Ord, PartialOrd, Eq, and PartialEq.

All labels observed (3)

Label Occurrences
PartialEq trait 1
PartialOrd trait 1
std::cmp module canonical 1

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Rust enum ⓘ
Rust standard library module ⓘ
Rust struct ⓘ
Rust trait ⓘ
Rust trait ⓘ
Rust trait ⓘ
Rust trait ⓘ
containsEnum Ordering ⓘ
containsStruct Reverse ⓘ
containsTrait Eq ⓘ
Ord ⓘ
PartialEq ⓘ
PartialOrd ⓘ
definedIn Rust core library ⓘ
linked to: core (Rust crate)

std::cmp ⓘ
hasVariant Equal ⓘ
Greater ⓘ
Less ⓘ
language Rust ⓘ
partOf Rust standard library ⓘ
linked to: Rust
provides Eq trait ⓘ
Ord trait ⓘ
Ordering enum ⓘ
PartialEq trait ⓘ
linked to: std::cmp module

PartialOrd trait ⓘ
linked to: std::cmp module

Reverse struct ⓘ
assert_eq macro ⓘ
assert_ne macro ⓘ
max function ⓘ
max_by function ⓘ
max_by_key function ⓘ
min function ⓘ
min_by function ⓘ
min_by_key function ⓘ
requires PartialEq ⓘ
PartialOrd ⓘ
supports equality comparison ⓘ
inequality comparison ⓘ
partial ordering ⓘ
total ordering ⓘ
usedFor comparing primitive types ⓘ
comparing user-defined types ⓘ
equality comparison ⓘ
implementing custom comparison logic ⓘ
partial ordering ⓘ
reversing sort order ⓘ
sorting collections ⓘ
total ordering ⓘ

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

std (Rust crate) → contains → std::cmp module ⓘ
subject linked to: std
std::cmp → provides → PartialOrd trait ⓘ
subject linked to: std::cmp module
linked to: std::cmp module
std::cmp → provides → PartialEq trait ⓘ
subject linked to: std::cmp module
linked to: std::cmp module