#[repr(u32)]pub enum NumericArrayDataType {
Bit8 = 1,
Bit16 = 3,
Bit32 = 5,
Bit64 = 7,
UBit8 = 2,
UBit16 = 4,
UBit32 = 6,
UBit64 = 8,
Real32 = 9,
Real64 = 10,
ComplexReal32 = 11,
ComplexReal64 = 12,
}
Expand description
The type of the data being stored in a NumericArray
.
This is an enumeration of all the types which satisfy NumericArrayType
.
Variants§
Bit8 = 1
Bit16 = 3
Bit32 = 5
Bit64 = 7
UBit8 = 2
UBit16 = 4
UBit32 = 6
UBit64 = 8
Real32 = 9
Real64 = 10
ComplexReal32 = 11
ComplexReal64 = 12
Implementations§
Source§impl NumericArrayDataType
impl NumericArrayDataType
pub fn as_raw(self) -> numericarray_data_t
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Get the string name of this type, suitable for use in
NumericArray
[data, "type"]
.
Trait Implementations§
Source§impl Clone for NumericArrayDataType
impl Clone for NumericArrayDataType
Source§fn clone(&self) -> NumericArrayDataType
fn clone(&self) -> NumericArrayDataType
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 NumericArrayDataType
impl Debug for NumericArrayDataType
Source§impl PartialEq for NumericArrayDataType
impl PartialEq for NumericArrayDataType
Source§impl TryFrom<u32> for NumericArrayDataType
impl TryFrom<u32> for NumericArrayDataType
impl Copy for NumericArrayDataType
impl Eq for NumericArrayDataType
impl StructuralPartialEq for NumericArrayDataType
Auto Trait Implementations§
impl Freeze for NumericArrayDataType
impl RefUnwindSafe for NumericArrayDataType
impl Send for NumericArrayDataType
impl Sync for NumericArrayDataType
impl Unpin for NumericArrayDataType
impl UnwindSafe for NumericArrayDataType
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