Struct lpc55_hal::time::Hertz [−][src]
pub struct Hertz<T = u32>(pub T)
where
T: TimeInt;
Expand description
Hertz
Implementations
Trait Implementations
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<Centihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Centihertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialEq<Centihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Centihertz<RhsInt>>,
[src]See Comparisons
impl<T, RhsInt> PartialEq<Microhertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Microhertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialEq<Microhertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Microhertz<RhsInt>>,
[src]See Comparisons
impl<T, RhsInt> PartialEq<Millihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Millihertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialEq<Millihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Millihertz<RhsInt>>,
[src]See Comparisons
impl<T, RhsInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Centihertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Centihertz<RhsInt>>,
[src]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
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
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<Microhertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Microhertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialOrd<Microhertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Microhertz<RhsInt>>,
[src]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<Millihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Millihertz<RhsInt>>,
[src]
impl<T, RhsInt> PartialOrd<Millihertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Millihertz<RhsInt>>,
[src]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>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
[src]
fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
[src]fn to_duration<Duration>(&self) -> Result<Duration, ConversionError> where
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
[src]
fn to_duration<Duration>(&self) -> Result<Duration, ConversionError> where
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
[src]pub fn try_from(
big: Centihertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Centihertz<T>>>::Error>
[src]
pub fn try_from(
big: Centihertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Centihertz<T>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Centihertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Centihertz<u64>>>::Error>
[src]
pub fn try_from(
big: Centihertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Centihertz<u64>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Microhertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Microhertz<T>>>::Error>
[src]
pub fn try_from(
big: Microhertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Microhertz<T>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Microhertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Microhertz<u64>>>::Error>
[src]
pub fn try_from(
big: Microhertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Microhertz<u64>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Millihertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Millihertz<T>>>::Error>
[src]
pub fn try_from(
big: Millihertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Millihertz<T>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Millihertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Millihertz<u64>>>::Error>
[src]
pub fn try_from(
big: Millihertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Millihertz<u64>>>::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.