Enum bonsaidb_core::key::time::limited::Microseconds
source · pub enum Microseconds {}
Expand description
A TimeResolution
implementation that truncates time measurements to
microseconds. Internally, the number of microseconds is represented as
an i64
, allowing a range of +/- ~292,471 years.
Trait Implementations§
source§impl Debug for Microseconds
impl Debug for Microseconds
source§impl TimeResolution for Microseconds
impl TimeResolution for Microseconds
§type Representation = i64
type Representation = i64
The in-memory and serialized representation for this resolution.
source§const FORMAT_SUFFIX: &'static str = "us"
const FORMAT_SUFFIX: &'static str = "us"
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 Microseconds
impl Send for Microseconds
impl Sync for Microseconds
impl Unpin for Microseconds
impl UnwindSafe for Microseconds
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