pub struct Nanoseconds(pub u64);
Expand description
Number of nanoseconds since an arbitrary epoch.
This is the instant type of ManualClock
.
Tuple Fields§
§0: u64
Trait Implementations§
Source§impl Add<Duration> for Nanoseconds
impl Add<Duration> for Nanoseconds
Source§impl Clone for Nanoseconds
impl Clone for Nanoseconds
Source§fn clone(&self) -> Nanoseconds
fn clone(&self) -> Nanoseconds
Returns a duplicate 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 Nanoseconds
impl Debug for Nanoseconds
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 for Nanoseconds
impl PartialEq for Nanoseconds
Source§impl PartialOrd for Nanoseconds
impl PartialOrd for Nanoseconds
Source§impl Sub for Nanoseconds
impl Sub for Nanoseconds
impl Copy for Nanoseconds
impl Eq 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