devela::all

Type Alias TimeSplitHourNano

Source
pub type TimeSplitHourNano<H, M, S, MS, US, NS> = TimeSplit<(), (), (), H, M, S, MS, US, NS>;
Available on crate feature time only.
Expand description

A time split from hours to nanoseconds.

Aliased Type§

struct TimeSplitHourNano<H, M, S, MS, US, NS> {
    pub y: (),
    pub mo: (),
    pub d: (),
    pub h: H,
    pub m: M,
    pub s: S,
    pub ms: MS,
    pub us: US,
    pub ns: NS,
}

Fields§

§y: ()

Years.

§mo: ()

Months.

§d: ()

Days.

§h: H

Hours.

§m: M

Minutes.

§s: S

Seconds.

§ms: MS

Milliseconds.

§us: US

Microseconds.

§ns: NS

Nanoseconds.

Implementations§

Source§

impl<H, M, S, MS, US, NS> TimeSplitHourNano<H, M, S, MS, US, NS>

Source

pub const fn new_hour_nano(h: H, m: M, s: S, ms: MS, us: US, ns: NS) -> Self

Returns a new TimeSplitHourNano.

Source§

impl TimeSplitHourNano<u64, u8, u8, u16, u16, u16>

Source

pub const fn from_duration(duration: Duration) -> Self

Converts a Duration into a time split representation from Hours down to nanoseconds.