Enum nyx_space::time::TimeUnit[][src]

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) -> GenericDecimal<u128, u16>[src]

pub fn in_seconds_f64(self) -> f64[src]

pub fn from_seconds(self) -> GenericDecimal<u128, u16>[src]

Trait Implementations

impl Add<TimeUnit> for Epoch[src]

type Output = Epoch

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 Duration[src]

impl AddAssign<TimeUnit> for Epoch[src]

impl Clone for TimeUnit[src]

impl Copy for TimeUnit[src]

impl Debug for TimeUnit[src]

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 TimeUnit[src]

impl PartialEq<TimeUnit> for Duration[src]

impl PartialOrd<TimeUnit> for Duration[src]

impl StructuralPartialEq for TimeUnit[src]

impl Sub<TimeUnit> for Epoch[src]

type Output = Epoch

The resulting type after applying the - operator.

impl Sub<TimeUnit> for TimeUnit[src]

type Output = Duration

The resulting type after applying the - operator.

impl Sub<TimeUnit> for Duration[src]

type Output = Duration

The resulting type after applying the - operator.

impl SubAssign<TimeUnit> for Duration[src]

impl SubAssign<TimeUnit> for Epoch[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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,