pub enum Datatype {
FixedPoint {
size: u8,
signed: bool,
byte_order: ByteOrder,
},
FloatingPoint {
size: u8,
byte_order: ByteOrder,
},
String {
size: StringSize,
encoding: StringEncoding,
padding: StringPadding,
},
Compound {
size: u32,
fields: Vec<CompoundField>,
},
Array {
base: Box<Datatype>,
dims: Vec<u64>,
},
Enum {
base: Box<Datatype>,
members: Vec<EnumMember>,
},
VarLen {
base: Box<Datatype>,
},
Opaque {
size: u32,
tag: String,
},
Reference {
ref_type: ReferenceType,
size: u8,
},
Bitfield {
size: u8,
byte_order: ByteOrder,
},
}Expand description
Describes the element type of a dataset or attribute.
Variants§
FixedPoint
Integer (class 0).
FloatingPoint
IEEE 754 float (class 1).
String
Character string (class 3).
Compound
Compound / struct (class 6).
Array
Fixed-size array of a base type (class 10).
Enum
Enumeration (class 8).
VarLen
Variable-length sequence or string (class 9).
Opaque
Opaque blob (class 5).
Reference
Object or region reference (class 7).
Bitfield
Bitfield (class 4).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more