Trait AsMatRef

Source
pub trait AsMatRef<E: Entity> {
    // Required method
    fn as_mat_ref(&self) -> MatRef<'_, E>;
}
Expand description

Trait for types that can be converted to a matrix view.

This trait is implemented for types of the matrix family, like Mat, MatRef, and MatMut, but not for types like Col, Row, or their families. For a more general trait, see As2D.

Required Methods§

Source

fn as_mat_ref(&self) -> MatRef<'_, E>

Convert to a matrix view.

Implementors§

Source§

impl<E: Entity> AsMatRef<E> for &Mat<E>

Source§

impl<E: Entity> AsMatRef<E> for &MatMut<'_, E>

Source§

impl<E: Entity> AsMatRef<E> for &MatRef<'_, E>

Source§

impl<E: Entity> AsMatRef<E> for Mat<E>

Source§

impl<E: Entity> AsMatRef<E> for MatMut<'_, E>

Source§

impl<E: Entity> AsMatRef<E> for MatRef<'_, E>