Skip to main content

MatrixMut

Trait MatrixMut 

Source
pub trait MatrixMut: Matrix + AsMut<[<Self as Matrix>::R]>
where <Self as Matrix>::R: RowMut,
{ // Provided methods fn get_row_mut(&mut self, row_index: usize) -> &mut [Self::MatElement] { ... } fn iter_rows_mut(&mut self) -> impl Iterator<Item = &mut Self::R> { ... } fn set( &mut self, row_idx: usize, column_idx: usize, val: <Self as Matrix>::MatElement, ) { ... } fn split_at_row_mut( &mut self, idx: usize, ) -> (&mut [<Self as Matrix>::R], &mut [<Self as Matrix>::R]) { ... } }

Provided Methods§

Source

fn get_row_mut(&mut self, row_index: usize) -> &mut [Self::MatElement]

Source

fn iter_rows_mut(&mut self) -> impl Iterator<Item = &mut Self::R>

Source

fn set( &mut self, row_idx: usize, column_idx: usize, val: <Self as Matrix>::MatElement, )

Source

fn split_at_row_mut( &mut self, idx: usize, ) -> (&mut [<Self as Matrix>::R], &mut [<Self as Matrix>::R])

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> MatrixMut for &mut [Vec<T>]

Source§

impl<T> MatrixMut for Vec<Vec<T>>

Implementors§