Trait faer_core::As2D

source ·
pub trait As2D<E: Entity> {
    // Required method
    fn as_2d_ref(&self) -> MatRef<'_, E>;
}
Expand description

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

This trait is implemented for any type that can be represented as a 2D matrix view, like Mat, Row, Col, and their respective references and mutable references. For a trait specific to the matrix family, see AsMatRef or AsMatMut.

Required Methods§

source

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

Convert to a 2D matrix view.

Implementors§

source§

impl<E: Entity> As2D<E> for &Col<E>

source§

impl<E: Entity> As2D<E> for &ColMut<'_, E>

source§

impl<E: Entity> As2D<E> for &ColRef<'_, E>

source§

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

source§

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

source§

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

source§

impl<E: Entity> As2D<E> for &Row<E>

source§

impl<E: Entity> As2D<E> for &RowMut<'_, E>

source§

impl<E: Entity> As2D<E> for &RowRef<'_, E>

source§

impl<E: Entity> As2D<E> for Col<E>

source§

impl<E: Entity> As2D<E> for ColMut<'_, E>

source§

impl<E: Entity> As2D<E> for ColRef<'_, E>

source§

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

source§

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

source§

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

source§

impl<E: Entity> As2D<E> for Row<E>

source§

impl<E: Entity> As2D<E> for RowMut<'_, E>

source§

impl<E: Entity> As2D<E> for RowRef<'_, E>