pub enum DataType {
I8,
U8,
I16,
U16,
I32,
U32,
I64,
U64,
F32,
F64,
Char,
String,
}Expand description
Data types supported by NetCDF.
Variants§
I8
8-bit signed integer
U8
8-bit unsigned integer
I16
16-bit signed integer
U16
16-bit unsigned integer (NetCDF-4 only)
I32
32-bit signed integer
U32
32-bit unsigned integer (NetCDF-4 only)
I64
64-bit signed integer (NetCDF-4 only)
U64
64-bit unsigned integer (NetCDF-4 only)
F32
32-bit floating point
F64
64-bit floating point
Char
Text/character
String
String (NetCDF-4 only)
Implementations§
Source§impl DataType
impl DataType
Sourcepub const fn is_integer(&self) -> bool
pub const fn is_integer(&self) -> bool
Check if this is an integer type.
Sourcepub const fn is_netcdf3_compatible(&self) -> bool
pub const fn is_netcdf3_compatible(&self) -> bool
Check if this is available in NetCDF-3.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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