std::cmp::Eq
#[derive(Eq)]
- Kind
- derive macro
- Module
std::cmp- Since
- 1.38.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::cmp in the Rust reference. This page has 35 cards.
#[derive(Eq)]
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn max<T>(v1: T, v2: T) -> T where T: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn max_by<T, F>(v1: T, v2: T, compare: F) -> T where F: FnOnce(&T, &T) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn max_by_key<T, F, K>(v1: T, v2: T, f: F) -> T where F: FnMut(&T) -> K, K: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn min<T>(v1: T, v2: T) -> T where T: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn min_by<T, F>(v1: T, v2: T, compare: F) -> T where F: FnOnce(&T, &T) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn min_by_key<T, F, K>(v1: T, v2: T, f: F) -> T where F: FnMut(&T) -> K, K: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn minmax<T>(v1: T, v2: T) -> [T; 2] where T: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn minmax_by<T, F>(v1: T, v2: T, compare: F) -> [T; 2] where F: FnOnce(&T, &T) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn minmax_by_key<T, F, K>(v1: T, v2: T, f: F) -> [T; 2] where F: FnMut(&T) -> K, K: Ord
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[derive(Ord)]
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn clamp(self, min: Self, max: Self) -> Self where Self: Sized
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn cmp(&self, other: &Self) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn max(self, other: Self) -> Self where Self: Sized
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn min(self, other: Self) -> Self where Self: Sized
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[repr(i8)]pub enum Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_eq(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_ge(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_gt(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_le(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_lt(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_ne(self) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn reverse(self) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn then(self, other: Ordering) -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn then_with<F>(self, f: F) -> Ordering where F: FnOnce() -> Ordering
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[derive(PartialEq)]
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn eq(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn ne(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[derive(PartialOrd)]
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn ge(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn gt(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn le(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn lt(&self, other: &Rhs) -> bool
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
#[repr(transparent)]pub struct Reverse<T>(pub T)
std::cmpSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.