pub trait NDArrayWrite:
NDArray
+ Debug
+ Sized {
// Required methods
fn write<O: NDArrayRead<DType = Self::DType>>(
&mut self,
other: &O,
) -> Result<(), Error>;
fn write_value(&mut self, value: Self::DType) -> Result<(), Error>;
fn write_value_at(
&mut self,
coord: &[usize],
value: Self::DType,
) -> Result<(), Error>;
}Expand description
Access methods for a mutable NDArray
Required Methods§
Sourcefn write<O: NDArrayRead<DType = Self::DType>>(
&mut self,
other: &O,
) -> Result<(), Error>
fn write<O: NDArrayRead<DType = Self::DType>>( &mut self, other: &O, ) -> Result<(), Error>
Overwrite this NDArray with the value of the other array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".