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