pub enum DataType {
FixedPoint {
size: u32,
signed: bool,
byte_order: ByteOrder,
bit_offset: u16,
bit_precision: u16,
},
FloatingPoint {
size: u32,
byte_order: ByteOrder,
bit_offset: u16,
bit_precision: u16,
exponent_location: u8,
exponent_size: u8,
mantissa_location: u8,
mantissa_size: u8,
exponent_bias: u32,
},
String {
size: u32,
padding: StringPadding,
charset: Charset,
},
Compound {
size: u32,
fields: Vec<CompoundField>,
},
Enum {
size: u32,
base_type: Box<DataType>,
members: Vec<(String, Vec<u8>)>,
},
VarLen {
base_type: Box<DataType>,
is_string: bool,
},
Array {
base_type: Box<DataType>,
dimensions: Vec<u32>,
},
Opaque {
size: u32,
tag: String,
},
Bitfield {
size: u32,
byte_order: ByteOrder,
bit_offset: u16,
bit_precision: u16,
},
Reference {
size: u32,
ref_type: u8,
},
}Expand description
HDF5 data type descriptor.
Parsed from the Datatype message (0x0003) in object headers.
Variants§
FixedPoint
Fixed-point integers (signed/unsigned, various sizes).
Fields
FloatingPoint
IEEE 754 floating-point.
Fields
String
Fixed-length or variable-length strings.
Fields
§
padding: StringPaddingPadding type.
Compound
Compound types (e.g., CFloat32 = {r: float32, i: float32}).
Enum
Enumerated types.
Fields
VarLen
Variable-length sequences or strings.
Fields
Array
Fixed-size array of another type.
Opaque
Opaque data.
Bitfield
Bitfield.
Fields
Reference
Reference type.
Implementations§
Trait Implementations§
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