Trait embedded_time::TimeInt [−][src]
pub trait TimeInt: Copy + Integer + Bounded + WrappingAdd + WrappingSub + CheckedAdd + CheckedSub + CheckedMul + CheckedDiv + From<u32> + Mul<Fraction, Output = Self> + Div<Fraction, Output = Self> + Display + Debug { fn checked_mul_fraction(&self, fraction: &Fraction) -> Option<Self> { ... } fn checked_div_fraction(&self, fraction: &Fraction) -> Option<Self> { ... } }
The core inner-type trait for time-related types
Provided methods
fn checked_mul_fraction(&self, fraction: &Fraction) -> Option<Self>
[src]
Checked integer × Fraction
= integer
Returns truncated (rounded toward 0
) integer or None
upon failure