#[repr(u32)]pub enum NPY_TYPES {
Show 28 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 = 24,
NPY_NOTYPE = 25,
NPY_CHAR = 26,
NPY_USERDEF = 256,
}
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 = 24
NPY_NOTYPE = 25
NPY_CHAR = 26
NPY_USERDEF = 256
Trait Implementations§
source§impl Ord for NPY_TYPES
impl Ord for NPY_TYPES
source§impl PartialEq for NPY_TYPES
impl PartialEq for NPY_TYPES
source§impl PartialOrd for NPY_TYPES
impl PartialOrd for NPY_TYPES
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NPY_TYPES
impl Eq for NPY_TYPES
impl StructuralPartialEq for NPY_TYPES
Auto Trait Implementations§
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
§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.