pub enum Days {}
Expand description
A TimeResolution
implementation that truncates time measurements to
days. Internally, the number of days is represented as an i32
,
allowing a range of +/- ~5.88 million years.
Trait Implementations§
source§impl TimeResolution for Days
impl TimeResolution for Days
§type Representation = i32
type Representation = i32
The in-memory and serialized representation for this resolution.
source§const FORMAT_SUFFIX: &'static str = "d"
const FORMAT_SUFFIX: &'static str = "d"
The label used when formatting times with this resolution.
source§fn repr_to_duration(
value: Self::Representation
) -> Result<SignedDuration, TimeError>
fn repr_to_duration( value: Self::Representation ) -> Result<SignedDuration, TimeError>
Converts a
Self::Representation
to Duration
.source§fn duration_to_repr(
duration: SignedDuration
) -> Result<Self::Representation, TimeError>
fn duration_to_repr( duration: SignedDuration ) -> Result<Self::Representation, TimeError>
Converts a
Duration
to Self::Representation
.Auto Trait Implementations§
impl RefUnwindSafe for Days
impl Send for Days
impl Sync for Days
impl Unpin for Days
impl UnwindSafe for Days
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more