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