Trait MatShape

Source
pub trait MatShape {
    type Rows: Copy + Eq + Debug;
    type Cols: Copy + Eq + Debug;

    // Required methods
    fn nrows(&self) -> Self::Rows;
    fn ncols(&self) -> Self::Cols;
}
Expand description

Type with a given matrix shape.

Required Associated Types§

Source

type Rows: Copy + Eq + Debug

Type of rows.

Source

type Cols: Copy + Eq + Debug

Type of columns.

Required Methods§

Source

fn nrows(&self) -> Self::Rows

Returns the number of rows.

Source

fn ncols(&self) -> Self::Cols

Returns the number of columns.

Implementors§

Source§

impl<E> MatShape for ColMut<'_, E>
where E: Entity,

Source§

impl<E> MatShape for ColRef<'_, E>
where E: Entity,

Source§

impl<E> MatShape for MatMut<'_, E>
where E: Entity,

Source§

impl<E> MatShape for MatRef<'_, E>
where E: Entity,

Source§

impl<E> MatShape for RowMut<'_, E>
where E: Entity,

Source§

impl<E> MatShape for RowRef<'_, E>
where E: Entity,

Source§

impl<Rows, Cols, Head, Tail> MatShape for ZipEq<Rows, Cols, Head, Tail>
where Rows: Copy + Eq + Debug, Cols: Copy + Eq + Debug, Head: MatShape<Rows = Rows, Cols = Cols>, Tail: MatShape<Rows = Rows, Cols = Cols>,

Source§

type Rows = Rows

Source§

type Cols = Cols

Source§

impl<Rows, Cols, Mat> MatShape for LastEq<Rows, Cols, Mat>
where Rows: Copy + Eq + Debug, Cols: Copy + Eq + Debug, Mat: MatShape<Rows = Rows, Cols = Cols>,

Source§

type Rows = Rows

Source§

type Cols = Cols