pub enum Minutes {}
Expand description
A TimeResolution
implementation that truncates time measurements to
minutes. Internally, the number of minutes is represented as an i32
,
allowing a range of +/- ~4,086 years.
Trait Implementations§
§impl TimeResolution for Minutes
impl TimeResolution for Minutes
§type Representation = i32
type Representation = i32
The in-memory and serialized representation for this resolution.
§const FORMAT_SUFFIX: &'static str = "m"
const FORMAT_SUFFIX: &'static str = "m"
The label used when formatting times with this resolution.
§fn repr_to_duration(
value: <Minutes as TimeResolution>::Representation
) -> Result<SignedDuration, TimeError>
fn repr_to_duration( value: <Minutes as TimeResolution>::Representation ) -> Result<SignedDuration, TimeError>
Converts a
Self::Representation
to Duration
.§fn duration_to_repr(
duration: SignedDuration
) -> Result<<Minutes as TimeResolution>::Representation, TimeError>
fn duration_to_repr( duration: SignedDuration ) -> Result<<Minutes as TimeResolution>::Representation, TimeError>
Converts a
Duration
to Self::Representation
.Auto Trait Implementations§
impl RefUnwindSafe for Minutes
impl Send for Minutes
impl Sync for Minutes
impl Unpin for Minutes
impl UnwindSafe for Minutes
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