pub enum DataType {
Show 16 variants
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float16,
Float32,
Float64,
CInt16,
CInt32,
CFloat32,
CFloat64,
Other,
}
Expand description
The data type gives information about the values in the file.
Variants§
Int8
8-bit integer
Int16
16-bit integer
Int32
32-bit integer
Int64
64-bit integer
UInt8
Unsigned 8-bit integer (common for 8-bit RGB PNG’s)
UInt16
Unsigned 16-bit integer
UInt32
Unsigned 32-bit integer
UInt64
Unsigned 64-bit integer
Float16
16-bit float
Float32
32-bit float
Float64
64-bit float
CInt16
16-bit complex integer
CInt32
32-bit complex integer
CFloat32
32-bit complex float
CFloat64
64-bit complex float
Other
Other data type than the ones listed above (e.g. boolean, string, higher precision numbers)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DataType
impl Serialize for DataType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 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