Trait extendr_api::prelude::modules::core::AsMatMut

pub trait AsMatMut<E>: AsMatRef<E>
where E: Entity,
{ // Required method fn as_mat_mut(&mut self) -> MatMut<'_, E>; }
Expand description

Trait for types that can be converted to a mutable 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§

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

Convert to a mutable matrix view.

Implementations on Foreign Types§

§

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

§

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

Implementors§

§

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

§

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