doc.rust-lang.org
fn from(value: T) -> Self
Converts to this type from the input type.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait From<T>
Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_ref(&self) -> &T
Converts this type into a shared reference of the (usually inferred) input type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsRef<T>
Used to do a cheap reference-to-reference conversion.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_mut(&mut self) -> &mut T
Converts this type into a mutable reference of the (usually inferred) input type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsMut<T>
Used to do a cheap mutable-to-mutable reference conversion.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod convert
Traits for conversions between types.
module
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro concat!
Concatenates literals into a static string slice.
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro compile_error!
Causes compilation to fail with the given error message when encountered.
macro
core
Stable since 1.20.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro column!
Expands to the column number at which it was invoked.
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_by_key<T, F, K>(v1: T, v2: T, f: F) -> T
Returns the element that gives the minimum value from the specified function.
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_by<T, F>(v1: T, v2: T, compare: F) -> T
Returns the minimum of two values with respect to the specified comparison function.
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min<T>(v1: T, v2: T) -> T
Compares and returns the minimum of two values.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_by_key<T, F, K>(v1: T, v2: T, f: F) -> T
Returns the element that gives the maximum value from the specified function.
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_by<T, F>(v1: T, v2: T, compare: F) -> T
Returns the maximum of two values with respect to the specified comparison function.
function
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max<T>(v1: T, v2: T) -> T
Compares and returns the maximum of two values.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Reverse<T>
A helper struct for reverse ordering.
struct
core
Stable since 1.19.0
Version 1.100.0-nightly
doc.rust-lang.org
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
This method returns an ordering between self and other values if one exists.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the <= operator.
method
core
Stable since 1.0.0
Version 1.100.0-nightly