Trait compio_buf::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: IndexableMut> IndexableMut for &mut T

source§

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

Implementors§