Trait slice_utils::SliceMut

source ·
pub trait SliceMut: Slice {
    // Required method
    fn get_mut(&mut self, index: usize) -> Option<&mut Self::Output>;
}
Expand description

A Slice that can return mutably borrowed values.

Required Methods§

source

fn get_mut(&mut self, index: usize) -> Option<&mut Self::Output>

Index the slice, returning a mutably borrowed value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, S> SliceMut for &'a mut S
where S: SliceMut + ?Sized,

source§

fn get_mut(&mut self, index: usize) -> Option<&mut Self::Output>

source§

impl<T> SliceMut for [T]

source§

fn get_mut(&mut self, index: usize) -> Option<&mut Self::Output>

source§

impl<T, const N: usize> SliceMut for [T; N]

source§

fn get_mut(&mut self, index: usize) -> Option<&mut Self::Output>

Implementors§

source§

impl<A> SliceMut for SliceOf<A>
where A: SliceMut,

source§

impl<S1, S2> SliceMut for Chain<S1, S2>
where S1: SliceMut, S2: SliceMut<Output = S1::Output>,

source§

impl<S1, S2> SliceMut for Interleave<S1, S2>
where S1: SliceMut, S2: SliceMut<Output = S1::Output>,

source§

impl<S> SliceMut for Cycle<S>
where S: SliceMut,

source§

impl<S> SliceMut for Reverse<S>
where S: SliceMut,