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
sourceimpl Microseconds32
impl Microseconds32
Trait Implementations
sourceimpl Add<Microseconds32> for MicrosecondDuration32
impl Add<Microseconds32> for MicrosecondDuration32
type Output = Microseconds32
type Output = Microseconds32
The resulting type after applying the +
operator.
sourcefn add(self, rhs: Microseconds32) -> Self::Output
fn add(self, rhs: Microseconds32) -> Self::Output
Performs the +
operation. Read more
sourceimpl Clone for Microseconds32
impl Clone for Microseconds32
sourcefn clone(&self) -> Microseconds32
fn clone(&self) -> Microseconds32
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Microseconds32
impl Debug for Microseconds32
sourceimpl Default for Microseconds32
impl Default for Microseconds32
sourcefn default() -> Microseconds32
fn default() -> Microseconds32
Returns the “default value” for a type. Read more
sourceimpl Instant for Microseconds32
impl Instant for Microseconds32
type Duration = MicrosecondDuration32
type Duration = MicrosecondDuration32
The duration between two instants Read more
sourcefn duration_since(&self, other: &Self) -> Self::Duration
fn duration_since(&self, other: &Self) -> Self::Duration
Calculates the duration between other and self Read more
sourcefn overflow_safe_compare(&self, other: &Self) -> Ordering
fn overflow_safe_compare(&self, other: &Self) -> Ordering
Compares this instant and another in a way that works correctly with overflow Read more
sourceimpl Ord for Microseconds32
impl Ord for Microseconds32
sourceimpl PartialEq<Microseconds32> for Microseconds32
impl PartialEq<Microseconds32> for Microseconds32
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Microseconds32) -> bool
fn ne(&self, other: &Microseconds32) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Microseconds32> for Microseconds32
impl PartialOrd<Microseconds32> for Microseconds32
sourcefn partial_cmp(&self, other: &Microseconds32) -> Option<Ordering>
fn partial_cmp(&self, other: &Microseconds32) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more