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§

source

fn write<O: NDArrayRead<DType = Self::DType>>( &mut self, other: &O ) -> Result<(), Error>

Overwrite this NDArray with the value of the other array.

source

fn write_value(&mut self, value: Self::DType) -> Result<(), Error>

Overwrite this NDArray with a constant scalar value.

source

fn write_value_at( &mut self, coord: &[usize], value: Self::DType ) -> Result<(), Error>

Write the given value at the given coord of this NDArray.

Object Safety§

This trait is not object safe.

Implementors§