Struct embedded_time::rate::Centihertz [−][src]
Expand description
Hertz / 100
Tuple Fields
0: T
Implementations
Trait Implementations
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for Centihertz<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for Centihertz<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
Returns the “default value” for a type. Read more
See Formatting
type T = T
type T = T
The integer (magnitude) type
The fractional scaling factor
Multiply with overflow checking
Multiply with overflow checking
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Centihertz<T> where
T: TryFrom<RhsInt>,
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Centihertz<T> where
T: TryFrom<RhsInt>,
See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Centihertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Centihertz<RhsInt>>,
See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hertz<RhsInt>> for Centihertz<T> where
Hertz<RhsInt>: PartialEq<Centihertz<T>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hertz<RhsInt>> for Centihertz<T> where
Hertz<RhsInt>: PartialEq<Centihertz<T>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Centihertz<T> where
T: TryFrom<RhsInt>,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Centihertz<T> where
T: TryFrom<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: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Centihertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Centihertz<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: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Centihertz<T> where
Hertz<RhsInt>: TryFrom<Self> + Ord,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Centihertz<T> where
Hertz<RhsInt>: TryFrom<Self> + Ord,
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
fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
fn to_duration<Duration: Duration>(&self) -> Result<Duration, ConversionError> where
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>,
fn to_duration<Duration: Duration>(&self) -> Result<Duration, ConversionError> where
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>,
impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for Centihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for Centihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for Centihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for Centihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
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.