pub struct HeaderData {
pub descr: String,
pub fortran_order: bool,
pub shape: Vec<usize>,
}Expand description
Header dictionary parsed from an .npy v1.0 stream.
Mirrors the dict NumPy’s numpy.lib.format.header_data_from_array_1_0
returns: descr (the dtype descriptor string), fortran_order, and
shape. Stored as a small struct so callers don’t need an untyped map.
Fields§
§descr: Stringdtype descriptor string (e.g. "<f8", "|b1").
fortran_order: booltrue if the underlying data is laid out in Fortran (column-major) order.
shape: Vec<usize>Array shape.
Trait Implementations§
Source§impl Clone for HeaderData
impl Clone for HeaderData
Source§fn clone(&self) -> HeaderData
fn clone(&self) -> HeaderData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderData
impl Debug for HeaderData
Source§impl PartialEq for HeaderData
impl PartialEq for HeaderData
impl Eq for HeaderData
impl StructuralPartialEq for HeaderData
Auto Trait Implementations§
impl Freeze for HeaderData
impl RefUnwindSafe for HeaderData
impl Send for HeaderData
impl Sync for HeaderData
impl Unpin for HeaderData
impl UnsafeUnpin for HeaderData
impl UnwindSafe for HeaderData
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.