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§
Sourcefn vector_mut(&mut self) -> &mut [E; N]
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<E> ArrayMut<E, 4> for (E, E, E, E)
impl<E> ArrayMut<E, 4> for (E, E, E, E)
fn vector_mut(&mut self) -> &mut [E; 4]
Source§impl<E, const N: usize> ArrayMut<E, N> for [E; N]
impl<E, const N: usize> ArrayMut<E, N> for [E; N]
fn vector_mut(&mut self) -> &mut [E; N]
Source§impl<T, E, const N: usize> ArrayMut<E, N> for &mut Twhere
T: ArrayMut<E, N>,
Implementation of ArrayMut
for mutable references to collections.
impl<T, E, const N: usize> ArrayMut<E, N> for &mut Twhere
T: ArrayMut<E, N>,
Implementation of ArrayMut
for mutable references to collections.