Struct drv8825::embedded_time::duration::Nanoseconds [−][src]
A duration unit type
Implementations
impl<T> Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn new(value: T) -> Nanoseconds<T>
[src]
Trait Implementations
impl<T, Rhs> Add<Rhs> for Nanoseconds<T> where
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
type Output = Nanoseconds<T>
The resulting type after applying the +
operator.
pub fn add(self, rhs: Rhs) -> <Nanoseconds<T> as Add<Rhs>>::Output
[src]
See Add/Sub
impl<T> Clone for Nanoseconds<T> where
T: TimeInt + Clone,
[src]
T: TimeInt + Clone,
pub fn clone(&self) -> Nanoseconds<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Nanoseconds<T> where
T: TimeInt + Copy,
[src]
T: TimeInt + Copy,
impl<T> Debug for Nanoseconds<T> where
T: TimeInt + Debug,
[src]
T: TimeInt + Debug,
impl<T> Default for Nanoseconds<T> where
T: TimeInt + Default,
[src]
T: TimeInt + Default,
pub fn default() -> Nanoseconds<T>
[src]
impl<T> Display for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T> Div<T> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = Nanoseconds<T>
The resulting type after applying the /
operator.
pub fn div(self, rhs: T) -> <Nanoseconds<T> as Div<T>>::Output
[src]
See Mul/Div
impl<T> Duration for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
[src]
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
pub fn to_rate<Rate>(&self) -> Result<Rate, ConversionError> where
Self: FixedPoint,
Rate: Rate + FixedPoint,
<Rate as FixedPoint>::T: TryFrom<Self::T>,
[src]
Self: FixedPoint,
Rate: Rate + FixedPoint,
<Rate as FixedPoint>::T: TryFrom<Self::T>,
impl<T> Eq for Nanoseconds<T> where
T: TimeInt + Eq,
[src]
T: TimeInt + Eq,
impl<T> FixedPoint for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type T = T
The integer (magnitude) type
pub const SCALING_FACTOR: Fraction
[src]
pub fn new(value: <Nanoseconds<T> as FixedPoint>::T) -> Nanoseconds<T>
[src]
pub fn integer(&self) -> &<Nanoseconds<T> as FixedPoint>::T
[src]
pub fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn min_value() -> Self::T
[src]
pub fn max_value() -> Self::T
[src]
impl From<Hours<u32>> for Nanoseconds<u64>
[src]
pub fn from(big: Hours<u32>) -> Nanoseconds<u64>
[src]
impl From<Microseconds<u32>> for Nanoseconds<u64>
[src]
pub fn from(big: Microseconds<u32>) -> Nanoseconds<u64>
[src]
impl From<Milliseconds<u32>> for Nanoseconds<u64>
[src]
pub fn from(big: Milliseconds<u32>) -> Nanoseconds<u64>
[src]
impl From<Minutes<u32>> for Nanoseconds<u64>
[src]
pub fn from(big: Minutes<u32>) -> Nanoseconds<u64>
[src]
impl<T> From<Nanoseconds<T>> for Hours<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: Nanoseconds<T>) -> Hours<T>
[src]
impl<T> From<Nanoseconds<T>> for Generic<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(duration: Nanoseconds<T>) -> Generic<T>
[src]
impl<T> From<Nanoseconds<T>> for Minutes<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: Nanoseconds<T>) -> Minutes<T>
[src]
impl<T> From<Nanoseconds<T>> for Milliseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: Nanoseconds<T>) -> Milliseconds<T>
[src]
impl<T> From<Nanoseconds<T>> for Seconds<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: Nanoseconds<T>) -> Seconds<T>
[src]
impl<T> From<Nanoseconds<T>> for Microseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: Nanoseconds<T>) -> Microseconds<T>
[src]
impl From<Nanoseconds<u32>> for Minutes<u64>
[src]
pub fn from(small: Nanoseconds<u32>) -> Minutes<u64>
[src]
impl From<Nanoseconds<u32>> for Hours<u64>
[src]
pub fn from(small: Nanoseconds<u32>) -> Hours<u64>
[src]
impl From<Nanoseconds<u32>> for Microseconds<u64>
[src]
pub fn from(small: Nanoseconds<u32>) -> Microseconds<u64>
[src]
impl From<Nanoseconds<u32>> for Milliseconds<u64>
[src]
pub fn from(small: Nanoseconds<u32>) -> Milliseconds<u64>
[src]
impl From<Nanoseconds<u32>> for Seconds<u64>
[src]
pub fn from(small: Nanoseconds<u32>) -> Seconds<u64>
[src]
impl From<Nanoseconds<u32>> for Nanoseconds<u64>
[src]
pub fn from(source: Nanoseconds<u32>) -> Nanoseconds<u64>
[src]
impl From<Seconds<u32>> for Nanoseconds<u64>
[src]
pub fn from(big: Seconds<u32>) -> Nanoseconds<u64>
[src]
impl<T> Hash for Nanoseconds<T> where
T: TimeInt + Hash,
[src]
T: TimeInt + Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Mul<T> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = Nanoseconds<T>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: T) -> <Nanoseconds<T> as Mul<T>>::Output
[src]
See Mul/Div
impl<T> Ord for Nanoseconds<T> where
T: TimeInt + Ord,
[src]
T: TimeInt + Ord,
pub fn cmp(&self, other: &Nanoseconds<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T, RhsInt> PartialEq<Hours<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Hours<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Hours<RhsInt>>,
pub fn eq(&self, rhs: &Hours<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Microseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Microseconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Microseconds<RhsInt>>,
pub fn eq(&self, rhs: &Microseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Milliseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Milliseconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Milliseconds<RhsInt>>,
pub fn eq(&self, rhs: &Milliseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
pub fn eq(&self, rhs: &Minutes<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Microseconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Microseconds<T>>,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Seconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Seconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Seconds<T>>,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Hours<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Hours<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Hours<T>>,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Milliseconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Milliseconds<T>>,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn eq(&self, rhs: &Nanoseconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Seconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Seconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Seconds<RhsInt>>,
pub fn eq(&self, rhs: &Seconds<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Hours<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Hours<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Hours<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Hours<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Microseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Microseconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Microseconds<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Microseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Milliseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Milliseconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Milliseconds<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Milliseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Minutes<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Microseconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Microseconds<T>>,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Milliseconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Milliseconds<T>>,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Seconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Seconds<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Seconds<T>>,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Hours<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Hours<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Hours<T>>,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
pub fn partial_cmp(&self, rhs: &Nanoseconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Seconds<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Seconds<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Seconds<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Seconds<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, Rhs> Rem<Rhs> for Nanoseconds<T> where
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
type Output = Nanoseconds<T>
The resulting type after applying the %
operator.
pub fn rem(self, rhs: Rhs) -> <Nanoseconds<T> as Rem<Rhs>>::Output
[src]
See Remainder
impl<T> StructuralEq for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T, Rhs> Sub<Rhs> for Nanoseconds<T> where
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Duration + FixedPoint,
Nanoseconds<T>: TryFrom<Rhs>,
type Output = Nanoseconds<T>
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Rhs) -> <Nanoseconds<T> as Sub<Rhs>>::Output
[src]
See Add/Sub
impl<T> TryFrom<Duration> for Nanoseconds<T> where
T: TimeInt + TryFrom<u128>,
[src]
T: TimeInt + TryFrom<u128>,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
core_duration: Duration
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Duration>>::Error>
[src]
core_duration: Duration
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Duration>>::Error>
impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for Nanoseconds<DestInt> where
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
[src]
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
generic_duration: Generic<SourceInt>
) -> Result<Nanoseconds<DestInt>, <Nanoseconds<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]
generic_duration: Generic<SourceInt>
) -> Result<Nanoseconds<DestInt>, <Nanoseconds<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
impl<T> TryFrom<Hours<T>> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Hours<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Hours<T>>>::Error>
[src]
big: Hours<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Hours<T>>>::Error>
impl TryFrom<Hours<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Hours<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Hours<u64>>>::Error>
[src]
big: Hours<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Hours<u64>>>::Error>
impl<T> TryFrom<Microseconds<T>> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Microseconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Microseconds<T>>>::Error>
[src]
big: Microseconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Microseconds<T>>>::Error>
impl TryFrom<Microseconds<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Microseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Microseconds<u64>>>::Error>
[src]
big: Microseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Microseconds<u64>>>::Error>
impl<T> TryFrom<Milliseconds<T>> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Milliseconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Milliseconds<T>>>::Error>
[src]
big: Milliseconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Milliseconds<T>>>::Error>
impl TryFrom<Milliseconds<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Milliseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Milliseconds<u64>>>::Error>
[src]
big: Milliseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Milliseconds<u64>>>::Error>
impl<T> TryFrom<Minutes<T>> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Minutes<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Minutes<T>>>::Error>
[src]
big: Minutes<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Minutes<T>>>::Error>
impl TryFrom<Minutes<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Minutes<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Minutes<u64>>>::Error>
[src]
big: Minutes<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Minutes<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
source: Nanoseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
source: Nanoseconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Microseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Nanoseconds<u64>
) -> Result<Microseconds<u32>, <Microseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
small: Nanoseconds<u64>
) -> Result<Microseconds<u32>, <Microseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Minutes<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Nanoseconds<u64>
) -> Result<Minutes<u32>, <Minutes<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
small: Nanoseconds<u64>
) -> Result<Minutes<u32>, <Minutes<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Milliseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Nanoseconds<u64>
) -> Result<Milliseconds<u32>, <Milliseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
small: Nanoseconds<u64>
) -> Result<Milliseconds<u32>, <Milliseconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Seconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Nanoseconds<u64>
) -> Result<Seconds<u32>, <Seconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
small: Nanoseconds<u64>
) -> Result<Seconds<u32>, <Seconds<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl TryFrom<Nanoseconds<u64>> for Hours<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Nanoseconds<u64>
) -> Result<Hours<u32>, <Hours<u32> as TryFrom<Nanoseconds<u64>>>::Error>
[src]
small: Nanoseconds<u64>
) -> Result<Hours<u32>, <Hours<u32> as TryFrom<Nanoseconds<u64>>>::Error>
impl<T> TryFrom<Seconds<T>> for Nanoseconds<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Seconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Seconds<T>>>::Error>
[src]
big: Seconds<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Seconds<T>>>::Error>
impl TryFrom<Seconds<u64>> for Nanoseconds<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Seconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Seconds<u64>>>::Error>
[src]
big: Seconds<u64>
) -> Result<Nanoseconds<u32>, <Nanoseconds<u32> as TryFrom<Seconds<u64>>>::Error>
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
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>,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,