Trait ArrayMut

Source
pub trait ArrayMut<E, const N: usize> {
    // Required method
    fn vector_mut(&mut self) -> &mut [E; N];
}
Expand description

A trait for accessing a mutable reference to a fixed-size array from a collection.

This trait requires the collection to implement Collection.

Required Methods§

Source

fn vector_mut(&mut self) -> &mut [E; N]

Returns a mutable reference to a fixed-size array from the collection.

§Returns
  • &mut [ E; N ]: A mutable reference to the fixed-size array.

Implementations on Foreign Types§

Source§

impl ArrayMut<usize, 0> for ()

Source§

fn vector_mut(&mut self) -> &mut [usize; 0]

Source§

impl<E> ArrayMut<E, 1> for (E,)

Source§

fn vector_mut(&mut self) -> &mut [E; 1]

Source§

impl<E> ArrayMut<E, 2> for (E, E)

Source§

fn vector_mut(&mut self) -> &mut [E; 2]

Source§

impl<E> ArrayMut<E, 3> for (E, E, E)

Source§

fn vector_mut(&mut self) -> &mut [E; 3]

Source§

impl<E> ArrayMut<E, 4> for (E, E, E, E)

Source§

fn vector_mut(&mut self) -> &mut [E; 4]

Source§

impl<E, const N: usize> ArrayMut<E, N> for [E; N]

Source§

fn vector_mut(&mut self) -> &mut [E; N]

Source§

impl<E, const N: usize> ArrayMut<E, N> for [E]

Source§

fn vector_mut(&mut self) -> &mut [E; N]

Source§

impl<T, E, const N: usize> ArrayMut<E, N> for &mut T
where T: ArrayMut<E, N>,

Implementation of ArrayMut for mutable references to collections.

Source§

fn vector_mut(&mut self) -> &mut [E; N]

Implementors§

Source§

impl ArrayMut<usize, 0> for Dim<[usize; 0]>

Source§

impl ArrayMut<usize, 1> for Dim<[usize; 1]>

Source§

impl ArrayMut<usize, 2> for Dim<[usize; 2]>

Source§

impl ArrayMut<usize, 3> for Dim<[usize; 3]>

Source§

impl<E, const N: usize> ArrayMut<E, N> for Vector<E, N>
where E: MatEl,