Struct tempus_fugit::Measurement [−][src]
pub struct Measurement(_);
Methods
impl Measurement
[src]
impl Measurement
Trait Implementations
impl Clone for Measurement
[src]
impl Clone for Measurement
fn clone(&self) -> Measurement
[src]
fn clone(&self) -> Measurement
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 Debug for Measurement
[src]
impl Debug for Measurement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Measurement
[src]
impl PartialEq for Measurement
fn eq(&self, other: &Measurement) -> bool
[src]
fn eq(&self, other: &Measurement) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Measurement) -> bool
[src]
fn ne(&self, other: &Measurement) -> bool
This method tests for !=
.
impl Eq for Measurement
[src]
impl Eq for Measurement
impl PartialOrd for Measurement
[src]
impl PartialOrd for Measurement
fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Measurement) -> bool
[src]
fn lt(&self, other: &Measurement) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Measurement) -> bool
[src]
fn le(&self, other: &Measurement) -> 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: &Measurement) -> bool
[src]
fn gt(&self, other: &Measurement) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Measurement) -> bool
[src]
fn ge(&self, other: &Measurement) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Measurement
[src]
impl Ord for Measurement
fn cmp(&self, other: &Measurement) -> Ordering
[src]
fn cmp(&self, other: &Measurement) -> 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 Add for Measurement
[src]
impl Add for Measurement
type Output = MeasureResult<Measurement>
The resulting type after applying the +
operator.
fn add(self, rhs: Measurement) -> Self::Output
[src]
fn add(self, rhs: Measurement) -> Self::Output
Performs the +
operation.
impl Sub for Measurement
[src]
impl Sub for Measurement
type Output = MeasureResult<Measurement>
The resulting type after applying the -
operator.
fn sub(self, rhs: Measurement) -> Self::Output
[src]
fn sub(self, rhs: Measurement) -> Self::Output
Performs the -
operation.
impl Display for Measurement
[src]
impl Display for Measurement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Measurement> for Duration
[src]
impl From<Measurement> for Duration
fn from(m: Measurement) -> Duration
[src]
fn from(m: Measurement) -> Duration
Performs the conversion.
impl From<Duration> for Measurement
[src]
impl From<Duration> for Measurement
fn from(d: Duration) -> Measurement
[src]
fn from(d: Duration) -> Measurement
Performs the conversion.
Auto Trait Implementations
impl Send for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Sync for Measurement