pub trait NDArrayRead:
NDArray
+ Debug
+ Sized {
// Required methods
fn buffer(&self) -> Result<BufferConverter<'_, Self::DType>, Error>;
fn into_read(
self,
) -> Result<Array<Self::DType, AccessBuf<<Self::Platform as Convert<Self::DType>>::Buffer>, Self::Platform>, Error>
where Self::Platform: Convert<Self::DType>;
fn read_value(&self, coord: &[usize]) -> Result<Self::DType, Error>;
}
Expand description
Access methods for an NDArray
Required Methods§
Sourcefn buffer(&self) -> Result<BufferConverter<'_, Self::DType>, Error>
fn buffer(&self) -> Result<BufferConverter<'_, Self::DType>, Error>
Read the value of this NDArray
into a BufferConverter
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.