Trait extendr_api::prelude::mat::As2DMut

pub trait As2DMut<E>: As2D<E>
where 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§

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

Convert to a mutable 2D matrix view.

Implementations on Foreign Types§

§

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

§

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

Implementors§

§

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

§

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

§

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

§

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

§

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

§

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