compio_buf

Trait IndexableMut

Source
pub trait IndexableMut: Indexable {
    // Required method
    fn index_mut(&mut self, n: usize) -> Option<&mut Self::Output>;
}
Expand description

A trait for vectored buffers that could be mutably indexed.

Required Methods§

Source

fn index_mut(&mut self, n: usize) -> Option<&mut Self::Output>

Get the mutable item with specific index.

Implementations on Foreign Types§

Source§

impl<T> IndexableMut for &mut [T]

Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T>

Source§

impl<T, A: Allocator + 'static> IndexableMut for Vec<T, A>

Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T>

Source§

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

Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T>

Source§

impl<T, const N: usize> IndexableMut for ArrayVec<T, N>

Available on crate feature arrayvec only.
Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T>

Source§

impl<T, const N: usize> IndexableMut for SmallVec<[T; N]>
where [T; N]: Array<Item = T>,

Available on crate feature smallvec only.
Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T>

Source§

impl<T: IndexableMut> IndexableMut for &mut T

Source§

fn index_mut(&mut self, n: usize) -> Option<&mut T::Output>

Implementors§