pub enum DType {
Show 15 variants
USIZE,
U8,
U16,
U32,
U64,
ISIZE,
I8,
I16,
I32,
I64,
F32,
F64,
Bool,
Str,
Char,
}
Expand description
Data Type enum
Variants
USIZE
U8
U16
U32
U64
ISIZE
I8
I16
I32
I64
F32
F64
Bool
Str
Char
Implementations
sourceimpl DType
impl DType
sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Check for static numeric type
pub fn is_integer(&self) -> bool
Trait Implementations
impl Copy for DType
impl Eq for DType
impl StructuralEq for DType
impl StructuralPartialEq for DType
Auto Trait Implementations
impl RefUnwindSafe for DType
impl Send for DType
impl Sync for DType
impl Unpin for DType
impl UnwindSafe for DType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more