time_core::convert

Trait Per

source
pub trait Per: Sealed {
    type Output;

    const VALUE: Self::Output;
}

Required Associated Constants§

source

const VALUE: Self::Output

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Per for (Day, Week)

source§

const VALUE: u8 = 7u8

source§

type Output = u8

source§

impl Per for (Hour, Day)

source§

const VALUE: u8 = 24u8

source§

type Output = u8

source§

impl Per for (Hour, Week)

source§

const VALUE: u8 = 168u8

source§

type Output = u8

source§

impl Per for (Microsecond, Day)

source§

const VALUE: u64 = 86_400_000_000u64

source§

type Output = u64

source§

impl Per for (Microsecond, Hour)

source§

const VALUE: u32 = 3_600_000_000u32

source§

type Output = u32

source§

impl Per for (Microsecond, Millisecond)

source§

const VALUE: u16 = 1_000u16

source§

type Output = u16

source§

impl Per for (Microsecond, Minute)

source§

const VALUE: u32 = 60_000_000u32

source§

type Output = u32

source§

impl Per for (Microsecond, Second)

source§

const VALUE: u32 = 1_000_000u32

source§

type Output = u32

source§

impl Per for (Microsecond, Week)

source§

const VALUE: u64 = 604_800_000_000u64

source§

type Output = u64

source§

impl Per for (Millisecond, Day)

source§

const VALUE: u32 = 86_400_000u32

source§

type Output = u32

source§

impl Per for (Millisecond, Hour)

source§

const VALUE: u32 = 3_600_000u32

source§

type Output = u32

source§

impl Per for (Millisecond, Minute)

source§

const VALUE: u16 = 60_000u16

source§

type Output = u16

source§

impl Per for (Millisecond, Second)

source§

const VALUE: u16 = 1_000u16

source§

type Output = u16

source§

impl Per for (Millisecond, Week)

source§

const VALUE: u32 = 604_800_000u32

source§

type Output = u32

source§

impl Per for (Minute, Day)

source§

const VALUE: u16 = 1_440u16

source§

type Output = u16

source§

impl Per for (Minute, Hour)

source§

const VALUE: u8 = 60u8

source§

type Output = u8

source§

impl Per for (Minute, Week)

source§

const VALUE: u16 = 10_080u16

source§

type Output = u16

source§

impl Per for (Nanosecond, Day)

source§

const VALUE: u64 = 86_400_000_000_000u64

source§

type Output = u64

source§

impl Per for (Nanosecond, Hour)

source§

const VALUE: u64 = 3_600_000_000_000u64

source§

type Output = u64

source§

impl Per for (Nanosecond, Microsecond)

source§

const VALUE: u16 = 1_000u16

source§

type Output = u16

source§

impl Per for (Nanosecond, Millisecond)

source§

const VALUE: u32 = 1_000_000u32

source§

type Output = u32

source§

impl Per for (Nanosecond, Minute)

source§

const VALUE: u64 = 60_000_000_000u64

source§

type Output = u64

source§

impl Per for (Nanosecond, Second)

source§

const VALUE: u32 = 1_000_000_000u32

source§

type Output = u32

source§

impl Per for (Nanosecond, Week)

source§

const VALUE: u64 = 604_800_000_000_000u64

source§

type Output = u64

source§

impl Per for (Second, Day)

source§

const VALUE: u32 = 86_400u32

source§

type Output = u32

source§

impl Per for (Second, Hour)

source§

const VALUE: u16 = 3_600u16

source§

type Output = u16

source§

impl Per for (Second, Minute)

source§

const VALUE: u8 = 60u8

source§

type Output = u8

source§

impl Per for (Second, Week)

source§

const VALUE: u32 = 604_800u32

source§

type Output = u32

Implementors§