pub trait MatrixMut<C> {
// Required method
fn set<T: Into<MatrixCoordinates>>(
&mut self,
coordinates: T,
value: C,
) -> Result<C, CoordinatesOutOfBoundsError>;
}
Expand description
Trait to handle mutable matrix operations.
Required Methods§
Sourcefn set<T: Into<MatrixCoordinates>>(
&mut self,
coordinates: T,
value: C,
) -> Result<C, CoordinatesOutOfBoundsError>
fn set<T: Into<MatrixCoordinates>>( &mut self, coordinates: T, value: C, ) -> Result<C, CoordinatesOutOfBoundsError>
Set a certain cell’s value. Coordinates should be row and column indices with respect to the source matrix.
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.