Trait time_core::convert::Per

source ·
pub trait Per: Sealed {
    type Output;

    const VALUE: Self::Output;
}

Required Associated Types§

Required Associated Constants§

source

const VALUE: Self::Output

Implementations on Foreign Types§

source§

impl Per for (Millisecond, Second)

§

type Output = u16

source§

const VALUE: u16 = 1_000u16

source§

impl Per for (Nanosecond, Second)

§

type Output = u32

source§

const VALUE: u32 = 1_000_000_000u32

source§

impl Per for (Second, Day)

§

type Output = u32

source§

const VALUE: u32 = 86_400u32

source§

impl Per for (Millisecond, Minute)

§

type Output = u16

source§

const VALUE: u16 = 60_000u16

source§

impl Per for (Millisecond, Day)

§

type Output = u32

source§

const VALUE: u32 = 86_400_000u32

source§

impl Per for (Millisecond, Hour)

§

type Output = u32

source§

const VALUE: u32 = 3_600_000u32

source§

impl Per for (Minute, Week)

§

type Output = u16

source§

const VALUE: u16 = 10_080u16

source§

impl Per for (Nanosecond, Minute)

§

type Output = u64

source§

const VALUE: u64 = 60_000_000_000u64

source§

impl Per for (Minute, Hour)

§

type Output = u8

source§

const VALUE: u8 = 60u8

source§

impl Per for (Microsecond, Hour)

§

type Output = u32

source§

const VALUE: u32 = 3_600_000_000u32

source§

impl Per for (Second, Hour)

§

type Output = u16

source§

const VALUE: u16 = 3_600u16

source§

impl Per for (Nanosecond, Millisecond)

§

type Output = u32

source§

const VALUE: u32 = 1_000_000u32

source§

impl Per for (Second, Minute)

§

type Output = u8

source§

const VALUE: u8 = 60u8

source§

impl Per for (Microsecond, Minute)

§

type Output = u32

source§

const VALUE: u32 = 60_000_000u32

source§

impl Per for (Nanosecond, Week)

§

type Output = u64

source§

const VALUE: u64 = 604_800_000_000_000u64

source§

impl Per for (Microsecond, Millisecond)

§

type Output = u16

source§

const VALUE: u16 = 1_000u16

source§

impl Per for (Millisecond, Week)

§

type Output = u32

source§

const VALUE: u32 = 604_800_000u32

source§

impl Per for (Microsecond, Day)

§

type Output = u64

source§

const VALUE: u64 = 86_400_000_000u64

source§

impl Per for (Second, Week)

§

type Output = u32

source§

const VALUE: u32 = 604_800u32

source§

impl Per for (Microsecond, Week)

§

type Output = u64

source§

const VALUE: u64 = 604_800_000_000u64

source§

impl Per for (Hour, Week)

§

type Output = u8

source§

const VALUE: u8 = 168u8

source§

impl Per for (Minute, Day)

§

type Output = u16

source§

const VALUE: u16 = 1_440u16

source§

impl Per for (Nanosecond, Hour)

§

type Output = u64

source§

const VALUE: u64 = 3_600_000_000_000u64

source§

impl Per for (Day, Week)

§

type Output = u8

source§

const VALUE: u8 = 7u8

source§

impl Per for (Nanosecond, Day)

§

type Output = u64

source§

const VALUE: u64 = 86_400_000_000_000u64

source§

impl Per for (Hour, Day)

§

type Output = u8

source§

const VALUE: u8 = 24u8

source§

impl Per for (Microsecond, Second)

§

type Output = u32

source§

const VALUE: u32 = 1_000_000u32

source§

impl Per for (Nanosecond, Microsecond)

§

type Output = u16

source§

const VALUE: u16 = 1_000u16

Implementors§