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§
sourcefn buf_nth_mut(&mut self, n: usize) -> Option<&mut dyn IoBufMut>
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]
impl<T: IoBufMut> IoIndexedBufMut for &'static mut [T]
source§impl<T: IoBufMut, const N: usize> IoIndexedBufMut for ArrayVec<T, N>
Available on crate feature arrayvec
only.
impl<T: IoBufMut, const N: usize> IoIndexedBufMut for ArrayVec<T, N>
Available on crate feature
arrayvec
only.