#[repr(u32)]pub enum NPY_DATETIMEUNIT {
Show 14 variants
NPY_FR_Y = 0,
NPY_FR_M = 1,
NPY_FR_W = 2,
NPY_FR_D = 4,
NPY_FR_h = 5,
NPY_FR_m = 6,
NPY_FR_s = 7,
NPY_FR_ms = 8,
NPY_FR_us = 9,
NPY_FR_ns = 10,
NPY_FR_ps = 11,
NPY_FR_fs = 12,
NPY_FR_as = 13,
NPY_FR_GENERIC = 14,
}
Variants§
NPY_FR_Y = 0
NPY_FR_M = 1
NPY_FR_W = 2
NPY_FR_D = 4
NPY_FR_h = 5
NPY_FR_m = 6
NPY_FR_s = 7
NPY_FR_ms = 8
NPY_FR_us = 9
NPY_FR_ns = 10
NPY_FR_ps = 11
NPY_FR_fs = 12
NPY_FR_as = 13
NPY_FR_GENERIC = 14
Trait Implementations§
Source§impl Clone for NPY_DATETIMEUNIT
impl Clone for NPY_DATETIMEUNIT
Source§fn clone(&self) -> NPY_DATETIMEUNIT
fn clone(&self) -> NPY_DATETIMEUNIT
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 NPY_DATETIMEUNIT
impl Debug for NPY_DATETIMEUNIT
Source§impl Hash for NPY_DATETIMEUNIT
impl Hash for NPY_DATETIMEUNIT
Source§impl PartialEq for NPY_DATETIMEUNIT
impl PartialEq for NPY_DATETIMEUNIT
impl Copy for NPY_DATETIMEUNIT
impl Eq for NPY_DATETIMEUNIT
impl StructuralPartialEq for NPY_DATETIMEUNIT
Auto Trait Implementations§
impl Freeze for NPY_DATETIMEUNIT
impl RefUnwindSafe for NPY_DATETIMEUNIT
impl Send for NPY_DATETIMEUNIT
impl Sync for NPY_DATETIMEUNIT
impl Unpin for NPY_DATETIMEUNIT
impl UnwindSafe for NPY_DATETIMEUNIT
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.