Trait CircularArrayIndexMut

Source
pub trait CircularArrayIndexMut<'a, const N: usize, T: 'a> {
    // Required methods
    fn get_mut(&mut self, index: [usize; N]) -> &mut T;
    fn get_mut_raw(&mut self, index: [usize; N]) -> &mut T;
}
Expand description

Methods for retrieving mutable references to elements of the array.

Required Methods§

Source

fn get_mut(&mut self, index: [usize; N]) -> &mut T

Get a mutable reference to the element at the given index, aligned to the offset.

Source

fn get_mut_raw(&mut self, index: [usize; N]) -> &mut T

Get a mutable reference to the element at the given index.

Implementors§

Source§

impl<'a, const N: usize, A: AsMut<[T]>, T: 'a> CircularArrayIndexMut<'a, N, T> for CircularArray<N, A, T>