Trait ratio_matrix::traits::MatrixRef
source · pub trait MatrixRef<C> {
// Required method
fn get<T: Into<MatrixCoordinates>>(
&self,
coordinates: T,
) -> Result<&C, CoordinatesOutOfBoundsError>;
}
Expand description
Trait to handle matrix data by reference.
Required Methods§
sourcefn get<T: Into<MatrixCoordinates>>(
&self,
coordinates: T,
) -> Result<&C, CoordinatesOutOfBoundsError>
fn get<T: Into<MatrixCoordinates>>( &self, coordinates: T, ) -> Result<&C, CoordinatesOutOfBoundsError>
Get a matrix value at this coordinate.
Object Safety§
This trait is not object safe.