pub struct NpyHeader {
pub descr: String,
pub dtype: DType,
pub endianness: Endianness,
pub fortran_order: bool,
pub shape: Vec<usize>,
pub version: (u8, u8),
}Expand description
Parsed .npy file header.
Fields§
§descr: StringThe dtype descriptor string (e.g., “<f8”).
dtype: DTypeParsed dtype.
endianness: EndiannessParsed endianness.
fortran_order: boolWhether the data is stored in Fortran (column-major) order.
shape: Vec<usize>Shape of the array.
version: (u8, u8)Format version (major, minor).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NpyHeader
impl RefUnwindSafe for NpyHeader
impl Send for NpyHeader
impl Sync for NpyHeader
impl Unpin for NpyHeader
impl UnsafeUnpin for NpyHeader
impl UnwindSafe for NpyHeader
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