pub struct NpzArchive<'a> { /* private fields */ }Expand description
A parsed .npz archive, borrowing its bytes. Members are decoded on demand.
Implementations§
Source§impl<'a> NpzArchive<'a>
impl<'a> NpzArchive<'a>
Sourcepub fn new(bytes: &'a [u8]) -> Result<Self, ErrorsJSL>
pub fn new(bytes: &'a [u8]) -> Result<Self, ErrorsJSL>
Reads the central directory of a ZIP archive, validating every member’s name.
Sourcepub fn contains(&self, name: &str) -> bool
pub fn contains(&self, name: &str) -> bool
Whether a member of this name exists (with or without .npy).
Trait Implementations§
Source§impl<'a> Clone for NpzArchive<'a>
impl<'a> Clone for NpzArchive<'a>
Auto Trait Implementations§
impl<'a> Freeze for NpzArchive<'a>
impl<'a> RefUnwindSafe for NpzArchive<'a>
impl<'a> Send for NpzArchive<'a>
impl<'a> Sync for NpzArchive<'a>
impl<'a> Unpin for NpzArchive<'a>
impl<'a> UnsafeUnpin for NpzArchive<'a>
impl<'a> UnwindSafe for NpzArchive<'a>
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