Trait ratio_matrix::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§

source

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.

Implementors§

source§

impl<'a, C> MatrixRef<C> for MatrixSlice<'a, C>

source§

impl<C> MatrixRef<C> for Matrix<C>