pub struct Nanosecond(/* private fields */);Expand description
A fractional second component, stored as nanoseconds.
Must be within inclusive bounds [0, 999_999_999].“
Implementations§
Trait Implementations§
Source§impl Clone for Nanosecond
 
impl Clone for Nanosecond
Source§fn clone(&self) -> Nanosecond
 
fn clone(&self) -> Nanosecond
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 Nanosecond
 
impl Debug for Nanosecond
Source§impl Default for Nanosecond
 
impl Default for Nanosecond
Source§fn default() -> Nanosecond
 
fn default() -> Nanosecond
Returns the “default value” for a type. Read more
Source§impl From<Nanosecond> for u32
 
impl From<Nanosecond> for u32
Source§fn from(input: Nanosecond) -> Self
 
fn from(input: Nanosecond) -> Self
Converts to this type from the input type.
Source§impl From<Nanosecond> for usize
 
impl From<Nanosecond> for usize
Source§fn from(input: Nanosecond) -> Self
 
fn from(input: Nanosecond) -> Self
Converts to this type from the input type.
Source§impl Hash for Nanosecond
 
impl Hash for Nanosecond
Source§impl IntoOption<Nanosecond> for Nanosecond
 
impl IntoOption<Nanosecond> for Nanosecond
Source§fn into_option(self) -> Option<Self>
 
fn into_option(self) -> Option<Self>
Return 
self as an Option<T>Source§impl Ord for Nanosecond
 
impl Ord for Nanosecond
Source§fn cmp(&self, other: &Nanosecond) -> Ordering
 
fn cmp(&self, other: &Nanosecond) -> 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 Nanosecond
 
impl PartialEq for Nanosecond
Source§impl PartialOrd for Nanosecond
 
impl PartialOrd for Nanosecond
Source§impl TryFrom<u32> for Nanosecond
 
impl TryFrom<u32> for Nanosecond
Source§impl TryFrom<usize> for Nanosecond
 
impl TryFrom<usize> for Nanosecond
impl Copy for Nanosecond
impl Eq for Nanosecond
impl StructuralPartialEq for Nanosecond
Auto Trait Implementations§
impl Freeze for Nanosecond
impl RefUnwindSafe for Nanosecond
impl Send for Nanosecond
impl Sync for Nanosecond
impl Unpin for Nanosecond
impl UnwindSafe for Nanosecond
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more