Struct precision::Elapsed [−][src]
pub struct Elapsed(_);
Methods
impl Elapsed
[src]
impl Elapsed
pub fn ticks(&self) -> u64
[src]
pub fn ticks(&self) -> u64
pub fn as_secs(&self, precision: &Precision) -> u64
[src]
pub fn as_secs(&self, precision: &Precision) -> u64
pub fn as_secs_f64(&self, precision: &Precision) -> f64
[src]
pub fn as_secs_f64(&self, precision: &Precision) -> f64
pub fn as_millis(&self, precision: &Precision) -> u64
[src]
pub fn as_millis(&self, precision: &Precision) -> u64
Trait Implementations
impl Clone for Elapsed
[src]
impl Clone for Elapsed
fn clone(&self) -> Elapsed
[src]
fn clone(&self) -> Elapsed
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Elapsed
[src]
impl Eq for Elapsed
impl PartialEq for Elapsed
[src]
impl PartialEq for Elapsed
fn eq(&self, other: &Elapsed) -> bool
[src]
fn eq(&self, other: &Elapsed) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Elapsed) -> bool
[src]
fn ne(&self, other: &Elapsed) -> bool
This method tests for !=
.
impl Ord for Elapsed
[src]
impl Ord for Elapsed
fn cmp(&self, other: &Elapsed) -> Ordering
[src]
fn cmp(&self, other: &Elapsed) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Elapsed
[src]
impl PartialOrd for Elapsed
fn partial_cmp(&self, other: &Elapsed) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Elapsed) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Elapsed) -> bool
[src]
fn lt(&self, other: &Elapsed) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Elapsed) -> bool
[src]
fn le(&self, other: &Elapsed) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Elapsed) -> bool
[src]
fn gt(&self, other: &Elapsed) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Elapsed) -> bool
[src]
fn ge(&self, other: &Elapsed) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add for Elapsed
[src]
impl Add for Elapsed