pub struct MemoryMappedArray { /* private fields */ }Expand description
Memory-mapped array wrapper (conceptual - for documentation)
Implementations§
Source§impl MemoryMappedArray
impl MemoryMappedArray
Sourcepub fn new(path: String, shape: (usize, usize), dtype: String) -> Self
pub fn new(path: String, shape: (usize, usize), dtype: String) -> Self
Create reference to memory-mapped array
Sourcepub fn validate_dtype(&self) -> Result<()>
pub fn validate_dtype(&self) -> Result<()>
Validate that the requested dtype is compatible with the Float type used at compile time.
Returns Ok(()) when the stored dtype matches the native Float width, or an error
describing the mismatch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryMappedArray
impl RefUnwindSafe for MemoryMappedArray
impl Send for MemoryMappedArray
impl Sync for MemoryMappedArray
impl Unpin for MemoryMappedArray
impl UnsafeUnpin for MemoryMappedArray
impl UnwindSafe for MemoryMappedArray
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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