Struct rtic_monotonic::Minutes [−][src]
Expand description
A duration unit type
Tuple Fields
0: T
Implementations
Trait Implementations
fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
Construct a Generic
Duration
from a named Duration
(eg.
Milliseconds
) Read more
fn to_rate<Rate>(&self) -> Result<Rate, ConversionError> where
Self: FixedPoint,
Rate: Rate + FixedPoint,
<Rate as FixedPoint>::T: TryFrom<Self::T>,
fn to_rate<Rate>(&self) -> Result<Rate, ConversionError> where
Self: FixedPoint,
Rate: Rate + FixedPoint,
<Rate as FixedPoint>::T: TryFrom<Self::T>,
type T = T
type T = T
The integer (magnitude) type
The fractional scaling factor
Multiply with overflow checking
Multiply with overflow checking
impl<T, RhsInt> PartialEq<Microseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialEq<Microseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
impl<T, RhsInt> PartialEq<Milliseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialEq<Milliseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Minutes<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialEq<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Microseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialOrd<Microseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Milliseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialOrd<Milliseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Microseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Microseconds<T>: TryFrom<Minutes<RhsInt>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Milliseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Milliseconds<T>: TryFrom<Minutes<RhsInt>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
impl<T, RhsInt> PartialOrd<Minutes<RhsInt>> for Nanoseconds<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<T>: TryFrom<Minutes<RhsInt>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
impl<T, RhsInt> PartialOrd<Nanoseconds<RhsInt>> for Minutes<T> where
T: TimeInt,
RhsInt: TimeInt,
Nanoseconds<RhsInt>: TryFrom<Minutes<T>>,
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
See Comparisons
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Minutes<T>
) -> Result<Microseconds<T>, <Microseconds<T> as TryFrom<Minutes<T>>>::Error>
pub fn try_from(
big: Minutes<T>
) -> Result<Microseconds<T>, <Microseconds<T> as TryFrom<Minutes<T>>>::Error>
type Error = ConversionError
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>
pub fn try_from(
big: Minutes<T>
) -> Result<Nanoseconds<T>, <Nanoseconds<T> as TryFrom<Minutes<T>>>::Error>
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Minutes<T>
) -> Result<Milliseconds<T>, <Milliseconds<T> as TryFrom<Minutes<T>>>::Error>
pub fn try_from(
big: Minutes<T>
) -> Result<Milliseconds<T>, <Milliseconds<T> as TryFrom<Minutes<T>>>::Error>
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.