doc.rust-lang.org
pub const fn abs_diff(self, other: Self) -> Self
Computes the absolute difference between self and other.
method
core
Stable since 1.60.0
Version 1.100.0-nightly
doc.rust-lang.org
const MIN: Self
The smallest value that can be represented by this integer type.
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
const MAX: Self
The largest value that can be represented by this integer type (2128 − 1).
associated_constant
core
Stable since 1.43.0
Version 1.100.0-nightly
doc.rust-lang.org
const BITS: u32
The size of this integer type in bits.
associated_constant
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive u128
The 128-bit unsigned integer type.
primitive
core
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive tuple
A finite heterogeneous sequence, (T, U, ..).
primitive
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro try!
Unwraps a result or propagates its error.
macro
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub macro todo!
Indicates unfinished code.
macro
core
Stable since 1.40.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct TryFromFloatSecsError
An error which can be returned when converting a floating-point value of seconds into a Duration.
struct
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_from_secs_f64(secs: f64) -> Result<Duration, TryFromFloatSecsError>
The checked version of from_secs_f64.
associated_function
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_from_secs_f32(secs: f32) -> Result<Duration, TryFromFloatSecsError>
The checked version of from_secs_f32.
associated_function
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_nanos(&self) -> u32
Returns the fractional part of this Duration, in nanoseconds.
method
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_millis(&self) -> u32
Returns the fractional part of this Duration, in whole milliseconds.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn subsec_micros(&self) -> u32
Returns the fractional part of this Duration, in whole microseconds.
method
core
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub(self, rhs: Duration) -> Duration
Saturating Duration subtraction. Computes self - other, returning Duration::ZERO if the result would be negative or if overflow occurred.
method
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_mul(self, rhs: u32) -> Duration
Saturating Duration multiplication. Computes self * other, returning Duration::MAX if overflow occurred.
method
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_add(self, rhs: Duration) -> Duration
Saturating Duration addition. Computes self + other, returning Duration::MAX if overflow occurred.
method
core
Stable since 1.53.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new(secs: u64, nanos: u32) -> Duration
Creates a new Duration from the specified number of whole seconds and additional nanoseconds.
associated_function
core
Stable since 1.3.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_f64(self, rhs: f64) -> Duration
Multiplies Duration by f64.
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_f32(self, rhs: f32) -> Duration
Multiplies Duration by f32.
method
core
Stable since 1.38.0
Version 1.100.0-nightly