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: <Days as TimeResolution>::Representation
) -> Result<SignedDuration, TimeError>
fn repr_to_duration( value: <Days as TimeResolution>::Representation ) -> Result<SignedDuration, TimeError>
Converts a
Self::Representation
to Duration
.source§fn duration_to_repr(
duration: SignedDuration
) -> Result<<Days as TimeResolution>::Representation, TimeError>
fn duration_to_repr( duration: SignedDuration ) -> Result<<Days as TimeResolution>::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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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