#[repr(C)]pub struct asdf_datatype_t {
pub type_: ScalarTypeAbi,
pub size: u64,
pub name: *const c_char,
pub byteorder: ByteOrderAbi,
pub ndim: u32,
pub shape: *const u64,
pub nfields: u32,
pub fields: *const asdf_datatype_t,
}Expand description
Mirror of asdf_datatype_t.
Field order and widths must match include/asdf/core/datatype.h.
Fields§
§type_: ScalarTypeAbiThe scalar type, or STRUCTURED for a compound type.
size: u64Element size in bytes. May be left 0 for numeric types.
name: *const c_charOptional field name, for a compound type’s member.
byteorder: ByteOrderAbiByte order of the elements.
ndim: u32Number of sub-array dimensions, 0 for a scalar.
shape: *const u64The sub-array shape, ndim entries.
nfields: u32Number of fields, for a compound type.
fields: *const asdf_datatype_tThe fields, nfields entries.
Trait Implementations§
Auto Trait Implementations§
impl !Send for asdf_datatype_t
impl !Sync for asdf_datatype_t
impl Freeze for asdf_datatype_t
impl RefUnwindSafe for asdf_datatype_t
impl Unpin for asdf_datatype_t
impl UnsafeUnpin for asdf_datatype_t
impl UnwindSafe for asdf_datatype_t
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