Trait ha_ndarray::NDArrayWrite
source · 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.
Object Safety§
This trait is not object safe.