Struct embedded_time::duration::Nanoseconds [−][src]
pub struct Nanoseconds<T: TimeInt = u32>(pub T);
Expand description
A duration unit type
Implementations
impl<T: TimeInt> Nanoseconds<T>
[src]
impl<T: TimeInt> Nanoseconds<T>
[src]Trait Implementations
impl<T: TimeInt, Clock: Clock> Add<Instant<Clock>> for Nanoseconds<T> where
Clock::T: TryFrom<T>,
[src]
impl<T: TimeInt, Clock: Clock> Add<Instant<Clock>> for Nanoseconds<T> where
Clock::T: TryFrom<T>,
[src]impl<T: TimeInt, Rhs: Duration> Add<Rhs> for Nanoseconds<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]
impl<T: TimeInt, Rhs: Duration> Add<Rhs> for Nanoseconds<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]impl<T: Clone + TimeInt> Clone for Nanoseconds<T>
[src]
impl<T: Clone + TimeInt> Clone for Nanoseconds<T>
[src]fn clone(&self) -> Nanoseconds<T>
[src]
fn clone(&self) -> Nanoseconds<T>
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug + TimeInt> Debug for Nanoseconds<T>
[src]
impl<T: Debug + TimeInt> Debug for Nanoseconds<T>
[src]impl<T: Default + TimeInt> Default for Nanoseconds<T>
[src]
impl<T: Default + TimeInt> Default for Nanoseconds<T>
[src]fn default() -> Nanoseconds<T>
[src]
fn default() -> Nanoseconds<T>
[src]Returns the “default value” for a type. Read more
impl<T: TimeInt> Display for Nanoseconds<T>
[src]
impl<T: TimeInt> Display for Nanoseconds<T>
[src]fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]
fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]See Formatting
impl<T: TimeInt> Div<T> for Nanoseconds<T>
[src]
impl<T: TimeInt> Div<T> for Nanoseconds<T>
[src]impl<T: TimeInt> Duration for Nanoseconds<T>
[src]
impl<T: TimeInt> Duration for Nanoseconds<T>
[src]fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
[src]
fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
[src]Construct a Generic
Duration
from a named Duration
(eg.
Milliseconds
) Read more
fn to_rate<Rate: Rate>(&self) -> Result<Rate, ConversionError> where
Rate: FixedPoint,
Self: FixedPoint,
Rate::T: TryFrom<Self::T>,
[src]
fn to_rate<Rate: Rate>(&self) -> Result<Rate, ConversionError> where
Rate: FixedPoint,
Self: FixedPoint,
Rate::T: TryFrom<Self::T>,
[src]impl<T: TimeInt> FixedPoint for Nanoseconds<T>
[src]
impl<T: TimeInt> FixedPoint for Nanoseconds<T>
[src]type T = T
type T = T
The integer (magnitude) type
const SCALING_FACTOR: Fraction
[src]
const SCALING_FACTOR: Fraction
[src]The fractional scaling factor
fn new(value: Self::T) -> Self
[src]
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]Multiply with overflow checking
fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]
fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]Multiply with overflow checking
impl From<Microseconds<u32>> for Nanoseconds<u64>
[src]
impl From<Microseconds<u32>> for Nanoseconds<u64>
[src]fn from(big: Microseconds<u32>) -> Self
[src]
fn from(big: Microseconds<u32>) -> Self
[src]impl From<Milliseconds<u32>> for Nanoseconds<u64>
[src]
impl From<Milliseconds<u32>> for Nanoseconds<u64>
[src]fn from(big: Milliseconds<u32>) -> Self
[src]
fn from(big: Milliseconds<u32>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Generic<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Generic<T>
[src]fn from(duration: Nanoseconds<T>) -> Self
[src]
fn from(duration: Nanoseconds<T>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Hours<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Hours<T>
[src]fn from(small: Nanoseconds<T>) -> Self
[src]
fn from(small: Nanoseconds<T>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Minutes<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Minutes<T>
[src]fn from(small: Nanoseconds<T>) -> Self
[src]
fn from(small: Nanoseconds<T>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Seconds<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Seconds<T>
[src]fn from(small: Nanoseconds<T>) -> Self
[src]
fn from(small: Nanoseconds<T>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Milliseconds<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Milliseconds<T>
[src]fn from(small: Nanoseconds<T>) -> Self
[src]
fn from(small: Nanoseconds<T>) -> Self
[src]impl<T: TimeInt> From<Nanoseconds<T>> for Microseconds<T>
[src]
impl<T: TimeInt> From<Nanoseconds<T>> for Microseconds<T>
[src]fn from(small: Nanoseconds<T>) -> Self
[src]
fn from(small: Nanoseconds<T>) -> Self
[src]impl From<Nanoseconds<u32>> for Nanoseconds<u64>
[src]
impl From<Nanoseconds<u32>> for Nanoseconds<u64>
[src]fn from(source: Nanoseconds<u32>) -> Self
[src]
fn from(source: Nanoseconds<u32>) -> Self
[src]impl From<Nanoseconds<u32>> for Hours<u64>
[src]
impl From<Nanoseconds<u32>> for Hours<u64>
[src]fn from(small: Nanoseconds<u32>) -> Self
[src]
fn from(small: Nanoseconds<u32>) -> Self
[src]impl From<Nanoseconds<u32>> for Minutes<u64>
[src]
impl From<Nanoseconds<u32>> for Minutes<u64>
[src]fn from(small: Nanoseconds<u32>) -> Self
[src]
fn from(small: Nanoseconds<u32>) -> Self
[src]impl From<Nanoseconds<u32>> for Seconds<u64>
[src]
impl From<Nanoseconds<u32>> for Seconds<u64>
[src]fn from(small: Nanoseconds<u32>) -> Self
[src]
fn from(small: Nanoseconds<u32>) -> Self
[src]impl From<Nanoseconds<u32>> for Milliseconds<u64>
[src]
impl From<Nanoseconds<u32>> for Milliseconds<u64>
[src]fn from(small: Nanoseconds<u32>) -> Self
[src]
fn from(small: Nanoseconds<u32>) -> Self
[src]impl From<Nanoseconds<u32>> for Microseconds<u64>
[src]
impl From<Nanoseconds<u32>> for Microseconds<u64>
[src]fn from(small: Nanoseconds<u32>) -> Self
[src]
fn from(small: Nanoseconds<u32>) -> Self
[src]impl<T: Hash + TimeInt> Hash for Nanoseconds<T>
[src]
impl<T: Hash + TimeInt> Hash for Nanoseconds<T>
[src]impl<T: TimeInt> Mul<T> for Nanoseconds<T>
[src]
impl<T: TimeInt> Mul<T> for Nanoseconds<T>
[src]impl<T: Ord + TimeInt> Ord for Nanoseconds<T>
[src]
impl<T: Ord + TimeInt> Ord for Nanoseconds<T>
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hours<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Hours<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hours<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Hours<RhsInt>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Microseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Microseconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Microseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Microseconds<RhsInt>>,
[src]fn eq(&self, rhs: &Microseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Microseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Milliseconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Milliseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Milliseconds<RhsInt>>,
[src]fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Minutes<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Minutes<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Minutes<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Minutes<RhsInt>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TryFrom<RhsInt>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Hours<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Hours<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Minutes<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Minutes<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Seconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Seconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Milliseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Milliseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Microseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Nanoseconds<RhsInt>> for Microseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Seconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Seconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Seconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Seconds<RhsInt>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hours<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Hours<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hours<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Hours<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Hours<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Hours<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Microseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Microseconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Microseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Microseconds<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Microseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Microseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Milliseconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Milliseconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Milliseconds<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Minutes<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Minutes<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Minutes<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Minutes<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Minutes<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Minutes<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TryFrom<RhsInt>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Hours<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Hours<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Minutes<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Minutes<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Seconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Seconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Milliseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Milliseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Microseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Nanoseconds<RhsInt>> for Microseconds<T> where
Nanoseconds<RhsInt>: TryFrom<Self>,
[src]fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Seconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Seconds<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Seconds<RhsInt>> for Nanoseconds<T> where
Self: TryFrom<Seconds<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Seconds<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Seconds<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, Rhs: Duration> Rem<Rhs> for Nanoseconds<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Duration> Rem<Rhs> for Nanoseconds<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl<T: TimeInt, Rhs: Duration> Sub<Rhs> for Nanoseconds<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Duration> Sub<Rhs> for Nanoseconds<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl<T: TimeInt> TryFrom<Duration> for Nanoseconds<T> where
T: TryFrom<u128>,
[src]
impl<T: TimeInt> TryFrom<Duration> for Nanoseconds<T> where
T: TryFrom<u128>,
[src]impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Nanoseconds<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]
impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Nanoseconds<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]impl<T: TimeInt> TryFrom<Hours<T>> for Nanoseconds<T>
[src]
impl<T: TimeInt> TryFrom<Hours<T>> for Nanoseconds<T>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Hours<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Hours<u64>> for Nanoseconds<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Microseconds<T>> for Nanoseconds<T>
[src]
impl<T: TimeInt> TryFrom<Microseconds<T>> for Nanoseconds<T>
[src]fn try_from(big: Microseconds<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: Microseconds<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Microseconds<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Microseconds<u64>> for Nanoseconds<u32>
[src]fn try_from(big: Microseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: Microseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Milliseconds<T>> for Nanoseconds<T>
[src]
impl<T: TimeInt> TryFrom<Milliseconds<T>> for Nanoseconds<T>
[src]fn try_from(big: Milliseconds<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: Milliseconds<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Milliseconds<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Milliseconds<u64>> for Nanoseconds<u32>
[src]fn try_from(big: Milliseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: Milliseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Minutes<T>> for Nanoseconds<T>
[src]
impl<T: TimeInt> TryFrom<Minutes<T>> for Nanoseconds<T>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Minutes<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Minutes<u64>> for Nanoseconds<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Nanoseconds<u32>
[src]fn try_from(source: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(source: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Hours<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Hours<u32>
[src]fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Minutes<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Minutes<u32>
[src]fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Seconds<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Seconds<u32>
[src]fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Milliseconds<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Milliseconds<u32>
[src]fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Nanoseconds<u64>> for Microseconds<u32>
[src]
impl TryFrom<Nanoseconds<u64>> for Microseconds<u32>
[src]fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: Nanoseconds<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Seconds<T>> for Nanoseconds<T>
[src]
impl<T: TimeInt> TryFrom<Seconds<T>> for Nanoseconds<T>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Seconds<u64>> for Nanoseconds<u32>
[src]
impl TryFrom<Seconds<u64>> for Nanoseconds<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: Copy + TimeInt> Copy for Nanoseconds<T>
[src]
impl<T: Eq + TimeInt> Eq for Nanoseconds<T>
[src]
impl<T: TimeInt> StructuralEq for Nanoseconds<T>
[src]
Auto Trait Implementations
impl<T> Send for Nanoseconds<T> where
T: Send,
T: Send,
impl<T> Sync for Nanoseconds<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Nanoseconds<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,