Trait faer::mat::As2DMut

source ·
pub trait As2DMut<E: Entity>: As2D<E> {
    // 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.

Implementations on Foreign Types§

source§

impl<E: Entity, T: As2DMut<E>> As2DMut<E> for &mut T

source§

fn as_2d_mut(&mut self) -> MatMut<'_, E>

Implementors§

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 Row<E>

source§

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

source§

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

source§

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