Struct canadensis::core::time::MicrosecondDuration64
source · [−]pub struct MicrosecondDuration64(_);
Expand description
A duration represented as a 64-bit number of microseconds
This type can represent durations of up to about five hundred thousand years.
Implementations
sourceimpl MicrosecondDuration64
impl MicrosecondDuration64
sourcepub fn new(microseconds: u64) -> MicrosecondDuration64
pub fn new(microseconds: u64) -> MicrosecondDuration64
Creates a duration from a number of microseconds
sourcepub fn as_microseconds(&self) -> u64
pub fn as_microseconds(&self) -> u64
Returns the number of microseconds this duration represents
Trait Implementations
sourceimpl Add<MicrosecondDuration64> for MicrosecondDuration64
impl Add<MicrosecondDuration64> for MicrosecondDuration64
type Output = MicrosecondDuration64
type Output = MicrosecondDuration64
The resulting type after applying the +
operator.
sourcefn add(
self,
rhs: MicrosecondDuration64
) -> <MicrosecondDuration64 as Add<MicrosecondDuration64>>::Output
fn add(
self,
rhs: MicrosecondDuration64
) -> <MicrosecondDuration64 as Add<MicrosecondDuration64>>::Output
Performs the +
operation. Read more
sourceimpl Add<Microseconds64> for MicrosecondDuration64
impl Add<Microseconds64> for MicrosecondDuration64
type Output = Microseconds64
type Output = Microseconds64
The resulting type after applying the +
operator.
sourcefn add(
self,
rhs: Microseconds64
) -> <MicrosecondDuration64 as Add<Microseconds64>>::Output
fn add(
self,
rhs: Microseconds64
) -> <MicrosecondDuration64 as Add<Microseconds64>>::Output
Performs the +
operation. Read more
sourceimpl Clone for MicrosecondDuration64
impl Clone for MicrosecondDuration64
sourcefn clone(&self) -> MicrosecondDuration64
fn clone(&self) -> MicrosecondDuration64
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 MicrosecondDuration64
impl Debug for MicrosecondDuration64
sourceimpl Default for MicrosecondDuration64
impl Default for MicrosecondDuration64
sourcefn default() -> MicrosecondDuration64
fn default() -> MicrosecondDuration64
Returns the “default value” for a type. Read more
sourceimpl Duration for MicrosecondDuration64
impl Duration for MicrosecondDuration64
sourcefn from_millis(millis: u32) -> Option<MicrosecondDuration64>
fn from_millis(millis: u32) -> Option<MicrosecondDuration64>
Creates a duration from a number of milliseconds Read more
sourcefn subsec_nanos(&self) -> u32
fn subsec_nanos(&self) -> u32
Returns the fractional part of this duration in nanoseconds
sourceimpl Ord for MicrosecondDuration64
impl Ord for MicrosecondDuration64
sourceimpl PartialEq<MicrosecondDuration64> for MicrosecondDuration64
impl PartialEq<MicrosecondDuration64> for MicrosecondDuration64
sourcefn eq(&self, other: &MicrosecondDuration64) -> bool
fn eq(&self, other: &MicrosecondDuration64) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MicrosecondDuration64) -> bool
fn ne(&self, other: &MicrosecondDuration64) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MicrosecondDuration64> for MicrosecondDuration64
impl PartialOrd<MicrosecondDuration64> for MicrosecondDuration64
sourcefn partial_cmp(&self, other: &MicrosecondDuration64) -> Option<Ordering>
fn partial_cmp(&self, other: &MicrosecondDuration64) -> 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 MicrosecondDuration64
impl Eq for MicrosecondDuration64
impl StructuralEq for MicrosecondDuration64
impl StructuralPartialEq for MicrosecondDuration64
Auto Trait Implementations
impl RefUnwindSafe for MicrosecondDuration64
impl Send for MicrosecondDuration64
impl Sync for MicrosecondDuration64
impl Unpin for MicrosecondDuration64
impl UnwindSafe for MicrosecondDuration64
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