Trait As2DMut

Source
pub trait As2DMut<E: Entity> {
    // Required method
    fn as_2d_mut(&mut self) -> MatMut<'_, E>;
}
Expand description

Trait for types that can be converted to a mutable 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_mut(&mut self) -> MatMut<'_, E>

Convert to a mutable 2D matrix view.

Implementors§

Source§

impl<E: Entity> As2DMut<E> for &mut Col<E>

Source§

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

Source§

impl<E: Entity> As2DMut<E> for &mut Mat<E>

Source§

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

Source§

impl<E: Entity> As2DMut<E> for &mut Row<E>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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