Struct canadensis_core::time::MicrosecondDuration32
source · pub struct MicrosecondDuration32(_);
Expand description
A duration represented as a 32-bit number of microseconds
This type can represent durations of up to about 1 hour.
Implementations§
Trait Implementations§
source§impl Add<Microseconds32> for MicrosecondDuration32
impl Add<Microseconds32> for MicrosecondDuration32
§type Output = Microseconds32
type Output = Microseconds32
The resulting type after applying the
+
operator.source§impl Clone for MicrosecondDuration32
impl Clone for MicrosecondDuration32
source§fn clone(&self) -> MicrosecondDuration32
fn clone(&self) -> MicrosecondDuration32
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 MicrosecondDuration32
impl Debug for MicrosecondDuration32
source§impl Default for MicrosecondDuration32
impl Default for MicrosecondDuration32
source§fn default() -> MicrosecondDuration32
fn default() -> MicrosecondDuration32
Returns the “default value” for a type. Read more
source§impl Duration for MicrosecondDuration32
impl Duration for MicrosecondDuration32
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 MicrosecondDuration32
impl Ord for MicrosecondDuration32
source§fn cmp(&self, other: &MicrosecondDuration32) -> Ordering
fn cmp(&self, other: &MicrosecondDuration32) -> 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<MicrosecondDuration32> for MicrosecondDuration32
impl PartialEq<MicrosecondDuration32> for MicrosecondDuration32
source§fn eq(&self, other: &MicrosecondDuration32) -> bool
fn eq(&self, other: &MicrosecondDuration32) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MicrosecondDuration32> for MicrosecondDuration32
impl PartialOrd<MicrosecondDuration32> for MicrosecondDuration32
source§fn partial_cmp(&self, other: &MicrosecondDuration32) -> Option<Ordering>
fn partial_cmp(&self, other: &MicrosecondDuration32) -> 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 MicrosecondDuration32
impl Eq for MicrosecondDuration32
impl StructuralEq for MicrosecondDuration32
impl StructuralPartialEq for MicrosecondDuration32
Auto Trait Implementations§
impl RefUnwindSafe for MicrosecondDuration32
impl Send for MicrosecondDuration32
impl Sync for MicrosecondDuration32
impl Unpin for MicrosecondDuration32
impl UnwindSafe for MicrosecondDuration32
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