Struct core::time::Nanoseconds
source · #[repr(transparent)]struct Nanoseconds(u32);
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for Nanoseconds
impl Clone for Nanoseconds
source§fn clone(&self) -> Nanoseconds
fn clone(&self) -> Nanoseconds
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 Default for Nanoseconds
impl Default for Nanoseconds
source§impl Eq for Nanoseconds
impl Eq for Nanoseconds
fn assert_receiver_is_total_eq(&self)
source§impl Hash for Nanoseconds
impl Hash for Nanoseconds
source§impl Ord for Nanoseconds
impl Ord for Nanoseconds
source§fn cmp(&self, other: &Nanoseconds) -> Ordering
fn cmp(&self, other: &Nanoseconds) -> 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<Nanoseconds> for Nanoseconds
impl PartialEq<Nanoseconds> for Nanoseconds
source§fn eq(&self, other: &Nanoseconds) -> bool
fn eq(&self, other: &Nanoseconds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Nanoseconds> for Nanoseconds
impl PartialOrd<Nanoseconds> for Nanoseconds
source§fn partial_cmp(&self, other: &Nanoseconds) -> Option<Ordering>
fn partial_cmp(&self, other: &Nanoseconds) -> 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 Nanoseconds
impl StructuralEq for Nanoseconds
impl StructuralPartialEq for Nanoseconds
Auto Trait Implementations§
impl Freeze for Nanoseconds
impl RefUnwindSafe for Nanoseconds
impl Send for Nanoseconds
impl Sync for Nanoseconds
impl Unpin for Nanoseconds
impl UnwindSafe for Nanoseconds
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more