Trait compio_buf::IoIndexedBufMut

source ·
pub trait IoIndexedBufMut: IoVectoredBufMut + IoIndexedBuf {
    // Required method
    fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>;
}
Expand description

A trait for mutable vectored buffers that could be indexed.

Required Methods§

source

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

Get the mutable buffer with specific index.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: IoBufMut> IoIndexedBufMut for &'static mut [T]

source§

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

source§

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

source§

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

source§

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

source§

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

source§

impl<T: IoBufMut, const N: usize> IoIndexedBufMut for ArrayVec<T, N>

Available on crate feature arrayvec only.
source§

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

source§

impl<T: IoIndexedBufMut> IoIndexedBufMut for &'static mut T

source§

fn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>

Implementors§