pub enum Datatype {
FixedPoint {
size: u32,
byte_order: DatatypeByteOrder,
signed: bool,
bit_offset: u16,
bit_precision: u16,
},
FloatingPoint {
size: u32,
byte_order: DatatypeByteOrder,
bit_offset: u16,
bit_precision: u16,
exponent_location: u8,
exponent_size: u8,
mantissa_location: u8,
mantissa_size: u8,
exponent_bias: u32,
},
Time {
size: u32,
byte_order: DatatypeByteOrder,
bit_precision: u16,
},
String {
size: u32,
padding: StringPadding,
charset: CharacterSet,
},
BitField {
size: u32,
byte_order: DatatypeByteOrder,
bit_offset: u16,
bit_precision: u16,
},
Opaque {
size: u32,
tag: Vec<u8>,
},
Compound {
size: u32,
members: Vec<CompoundMember>,
},
Reference {
size: u32,
ref_type: ReferenceType,
},
Enumeration {
size: u32,
base_type: Box<Datatype>,
members: Vec<EnumMember>,
},
VariableLength {
is_string: bool,
padding: Option<StringPadding>,
charset: Option<CharacterSet>,
base_type: Box<Datatype>,
},
Array {
base_type: Box<Datatype>,
dimensions: Vec<u32>,
},
}Expand description
Parsed HDF5 datatype.
Variants§
FixedPoint
Class 0: Fixed-point (integer) types.
FloatingPoint
Class 1: Floating-point types.
Fields
§
byte_order: DatatypeByteOrderTime
Class 2: Time type (rarely used).
String
Class 3: Fixed-length string.
BitField
Class 4: Bit field.
Opaque
Class 5: Opaque data.
Compound
Class 6: Compound type.
Reference
Class 7: Reference type.
Enumeration
Class 8: Enumeration type.
VariableLength
Class 9: Variable-length type.
Array
Class 10: Array type.
Implementations§
Trait Implementations§
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