#[repr(C)]pub struct asdf_ndarray_t {
pub source: usize,
pub ndim: u32,
pub shape: *const u64,
pub datatype: asdf_datatype_t,
pub byteorder: ByteOrderAbi,
pub offset: u64,
pub strides: *const i64,
pub _reserved: *mut c_void,
}Expand description
Mirror of asdf_ndarray_t.
The header notes that these fields are public “for now” and may not stay ABI-stable; reproducing them exactly is what makes this a drop-in today.
Fields§
§source: usizeIndex of the block holding the data.
ndim: u32Number of dimensions.
shape: *const u64The shape, ndim entries.
datatype: asdf_datatype_tThe element type.
byteorder: ByteOrderAbiByte order of the array data.
offset: u64Offset into the block where the data starts.
strides: *const i64Strides in bytes, ndim entries, or null for C-contiguous.
_reserved: *mut c_voidReserved for the implementation. This is where our state lives.
Trait Implementations§
Auto Trait Implementations§
impl !Send for asdf_ndarray_t
impl !Sync for asdf_ndarray_t
impl Freeze for asdf_ndarray_t
impl RefUnwindSafe for asdf_ndarray_t
impl Unpin for asdf_ndarray_t
impl UnsafeUnpin for asdf_ndarray_t
impl UnwindSafe for asdf_ndarray_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