Struct canadensis_core::time::MicrosecondDuration48
source · pub struct MicrosecondDuration48(_);
Expand description
A duration represented as a 48-bit number of microseconds
This type can represent durations of up to about 9 years.
It takes up 8 bytes of space (the same as a 64-bit duration).
Implementations§
Trait Implementations§
source§impl Add<Microseconds48> for MicrosecondDuration48
impl Add<Microseconds48> for MicrosecondDuration48
§type Output = Microseconds48
type Output = Microseconds48
The resulting type after applying the
+
operator.source§impl Clone for MicrosecondDuration48
impl Clone for MicrosecondDuration48
source§fn clone(&self) -> MicrosecondDuration48
fn clone(&self) -> MicrosecondDuration48
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MicrosecondDuration48
impl Debug for MicrosecondDuration48
source§impl Default for MicrosecondDuration48
impl Default for MicrosecondDuration48
source§fn default() -> MicrosecondDuration48
fn default() -> MicrosecondDuration48
Returns the “default value” for a type. Read more
source§impl Duration for MicrosecondDuration48
impl Duration for MicrosecondDuration48
source§fn from_millis(millis: u32) -> Option<Self>
fn from_millis(millis: u32) -> Option<Self>
Creates a duration from a number of milliseconds Read more
source§fn subsec_nanos(&self) -> u32
fn subsec_nanos(&self) -> u32
Returns the fractional part of this duration in nanoseconds
source§impl Ord for MicrosecondDuration48
impl Ord for MicrosecondDuration48
source§fn cmp(&self, other: &MicrosecondDuration48) -> Ordering
fn cmp(&self, other: &MicrosecondDuration48) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MicrosecondDuration48> for MicrosecondDuration48
impl PartialEq<MicrosecondDuration48> for MicrosecondDuration48
source§fn eq(&self, other: &MicrosecondDuration48) -> bool
fn eq(&self, other: &MicrosecondDuration48) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MicrosecondDuration48> for MicrosecondDuration48
impl PartialOrd<MicrosecondDuration48> for MicrosecondDuration48
source§fn partial_cmp(&self, other: &MicrosecondDuration48) -> Option<Ordering>
fn partial_cmp(&self, other: &MicrosecondDuration48) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MicrosecondDuration48
impl Eq for MicrosecondDuration48
impl StructuralEq for MicrosecondDuration48
impl StructuralPartialEq for MicrosecondDuration48
Auto Trait Implementations§
impl RefUnwindSafe for MicrosecondDuration48
impl Send for MicrosecondDuration48
impl Sync for MicrosecondDuration48
impl Unpin for MicrosecondDuration48
impl UnwindSafe for MicrosecondDuration48
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more