pub struct Nanoseconds;Expand description
Nanoseconds, i.e. 10^-9 seconds
Trait Implementations§
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 Unit for Nanoseconds
 
impl Unit for Nanoseconds
Source§const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns
 
const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns
The matching NumPy datetime unit code
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
    SS: SubsetOf<SP>,
 
impl<SS, SP> SupersetOf<SS> for SPwhere
    SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
 
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct 
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
 
fn is_in_subset(&self) -> bool
Checks if 
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
 
fn to_subset_unchecked(&self) -> SS
Use with care! Same as 
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
 
fn from_subset(element: &SS) -> SP
The inclusion map: converts 
self to the equivalent element of its superset.