pub struct MmapNpyArray1I64 { /* private fields */ }Expand description
Memory-mapped NPY array for i64 values (used for codes).
This struct provides zero-copy access to 1D i64 arrays stored in NPY format.
Implementations§
Source§impl MmapNpyArray1I64
impl MmapNpyArray1I64
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Create an empty instance backed by an anonymous mmap (no file).
Used to release file-backed mmap handles before file operations on Windows, where deleting or renaming a memory-mapped file causes OS error 1224.
Sourcepub fn from_npy_file(path: &Path) -> Result<Self>
pub fn from_npy_file(path: &Path) -> Result<Self>
Load a 1D i64 array from an NPY file.
Auto Trait Implementations§
impl Freeze for MmapNpyArray1I64
impl RefUnwindSafe for MmapNpyArray1I64
impl Send for MmapNpyArray1I64
impl Sync for MmapNpyArray1I64
impl Unpin for MmapNpyArray1I64
impl UnsafeUnpin for MmapNpyArray1I64
impl UnwindSafe for MmapNpyArray1I64
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more