[][src]Enum hifitime::TimeUnit

pub enum TimeUnit {
    Century,
    Day,
    Hour,
    Minute,
    Second,
    Millisecond,
    Microsecond,
    Nanosecond,
}

Variants

Century

36525 days, it the number of days per century in the Julian calendar

Day
Hour
Minute
Second
Millisecond
Microsecond
Nanosecond

Implementations

impl TimeUnit[src]

pub fn in_seconds(self) -> Decimal[src]

pub fn from_seconds(self) -> Decimal[src]

Trait Implementations

impl Add<TimeUnit> for Epoch[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<TimeUnit> for Duration[src]

type Output = Duration

The resulting type after applying the + operator.

impl Add<TimeUnit> for TimeUnit[src]

type Output = Duration

The resulting type after applying the + operator.

impl AddAssign<TimeUnit> for Epoch[src]

impl AddAssign<TimeUnit> for Duration[src]

impl Clone for TimeUnit[src]

impl Copy for TimeUnit[src]

impl Debug for TimeUnit[src]

impl Mul<TimeUnit> for f32[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for f64[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for u128[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for u8[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for i8[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for u16[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for i16[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for u32[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for i32[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for u64[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<TimeUnit> for i64[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<f32> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<f64> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<i16> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<i32> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<i64> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<i8> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<u128> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<u16> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<u32> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<u64> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl Mul<u8> for TimeUnit[src]

type Output = Duration

The resulting type after applying the * operator.

impl PartialEq<TimeUnit> for Duration[src]

impl PartialEq<TimeUnit> for TimeUnit[src]

impl PartialOrd<TimeUnit> for Duration[src]

impl StructuralPartialEq for TimeUnit[src]

impl Sub<TimeUnit> for Epoch[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<TimeUnit> for Duration[src]

type Output = Duration

The resulting type after applying the - operator.

impl Sub<TimeUnit> for TimeUnit[src]

type Output = Duration

The resulting type after applying the - operator.

impl SubAssign<TimeUnit> for Epoch[src]

impl SubAssign<TimeUnit> for Duration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,