pub struct Nanosecond(/* private fields */);Expand description
Used in combination with Second to signify subsecond fractions
Implementations§
Trait Implementations§
Source§impl Clone for Nanosecond
impl Clone for Nanosecond
Source§fn clone(&self) -> Nanosecond
fn clone(&self) -> Nanosecond
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 Nanosecond
impl Debug for Nanosecond
Source§impl Display for Nanosecond
impl Display for Nanosecond
Source§impl From<Nanosecond> for i32
impl From<Nanosecond> for i32
Source§fn from(value: Nanosecond) -> i32
fn from(value: Nanosecond) -> i32
Converts to this type from the input type.
Source§impl From<Nanosecond> for i64
impl From<Nanosecond> for i64
Source§fn from(value: Nanosecond) -> i64
fn from(value: Nanosecond) -> i64
Converts to this type from the input type.
Source§impl From<Nanosecond> for u32
impl From<Nanosecond> for u32
Source§fn from(value: Nanosecond) -> u32
fn from(value: Nanosecond) -> u32
Converts to this type from the input type.
Source§impl From<Nanosecond> for u64
impl From<Nanosecond> for u64
Source§fn from(value: Nanosecond) -> u64
fn from(value: Nanosecond) -> u64
Converts to this type from the input type.
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<i16> for Nanosecond
impl TryFrom<i16> for Nanosecond
Source§impl TryFrom<i32> for Nanosecond
impl TryFrom<i32> for Nanosecond
Source§impl TryFrom<i8> for Nanosecond
impl TryFrom<i8> for Nanosecond
Source§impl TryFrom<u16> for Nanosecond
impl TryFrom<u16> for Nanosecond
Source§impl TryFrom<u32> for Nanosecond
impl TryFrom<u32> for Nanosecond
Source§impl TryFrom<u8> for Nanosecond
impl TryFrom<u8> 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