#[repr(u32)]pub enum NPY_TYPES {
Show 29 variants
NPY_BOOL = 0,
NPY_BYTE = 1,
NPY_UBYTE = 2,
NPY_SHORT = 3,
NPY_USHORT = 4,
NPY_INT = 5,
NPY_UINT = 6,
NPY_LONG = 7,
NPY_ULONG = 8,
NPY_LONGLONG = 9,
NPY_ULONGLONG = 10,
NPY_FLOAT = 11,
NPY_DOUBLE = 12,
NPY_LONGDOUBLE = 13,
NPY_CFLOAT = 14,
NPY_CDOUBLE = 15,
NPY_CLONGDOUBLE = 16,
NPY_OBJECT = 17,
NPY_STRING = 18,
NPY_UNICODE = 19,
NPY_VOID = 20,
NPY_DATETIME = 21,
NPY_TIMEDELTA = 22,
NPY_HALF = 23,
NPY_NTYPES_LEGACY = 24,
NPY_NOTYPE = 25,
NPY_CHAR = 26,
NPY_USERDEF = 256,
NPY_VSTRING = 2_056,
}
Variants§
NPY_BOOL = 0
NPY_BYTE = 1
NPY_UBYTE = 2
NPY_SHORT = 3
NPY_USHORT = 4
NPY_INT = 5
NPY_UINT = 6
NPY_LONG = 7
NPY_ULONG = 8
NPY_LONGLONG = 9
NPY_ULONGLONG = 10
NPY_FLOAT = 11
NPY_DOUBLE = 12
NPY_LONGDOUBLE = 13
NPY_CFLOAT = 14
NPY_CDOUBLE = 15
NPY_CLONGDOUBLE = 16
NPY_OBJECT = 17
NPY_STRING = 18
NPY_UNICODE = 19
NPY_VOID = 20
NPY_DATETIME = 21
NPY_TIMEDELTA = 22
NPY_HALF = 23
NPY_NTYPES_LEGACY = 24
NPY_NOTYPE = 25
NPY_CHAR = 26
NPY_USERDEF = 256
NPY_VSTRING = 2_056
Trait Implementations§
Source§impl Ord for NPY_TYPES
impl Ord for NPY_TYPES
Source§impl PartialOrd for NPY_TYPES
impl PartialOrd for NPY_TYPES
impl Copy for NPY_TYPES
impl Eq for NPY_TYPES
impl StructuralPartialEq for NPY_TYPES
Auto Trait Implementations§
impl Freeze for NPY_TYPES
impl RefUnwindSafe for NPY_TYPES
impl Send for NPY_TYPES
impl Sync for NPY_TYPES
impl Unpin for NPY_TYPES
impl UnwindSafe for NPY_TYPES
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.