pub struct MemmapArray<T: Element> { /* private fields */ }Expand description
A read-only memory-mapped array backed by a .npy file.
The array data is mapped directly from the file. No copy is made. The data remains valid as long as this struct is alive.
Implementations§
Source§impl<T: Element> MemmapArray<T>
impl<T: Element> MemmapArray<T>
Sourcepub fn to_array(&self) -> FerrayResult<Array<T, IxDyn>>
pub fn to_array(&self) -> FerrayResult<Array<T, IxDyn>>
Copy the memory-mapped data into an owned Array.
Trait Implementations§
impl<T: Element> Send for MemmapArray<T>
impl<T: Element> Sync for MemmapArray<T>
Auto Trait Implementations§
impl<T> Freeze for MemmapArray<T>
impl<T> RefUnwindSafe for MemmapArray<T>where
T: RefUnwindSafe,
impl<T> Unpin for MemmapArray<T>where
T: Unpin,
impl<T> UnsafeUnpin for MemmapArray<T>
impl<T> UnwindSafe for MemmapArray<T>where
T: RefUnwindSafe + UnwindSafe,
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