Trait compio_buf::IoIndexedBuf

source ·
pub trait IoIndexedBuf: IoVectoredBuf {
    // Required method
    fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>;
}
Expand description

A trait for vectored buffers that could be indexed.

Required Methods§

source

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

Get the buffer with specific index.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: IoBuf> IoIndexedBuf for &'static [T]

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

impl<T: IoBuf> IoIndexedBuf for &'static mut [T]

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

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

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

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

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

impl<T: IoBuf, const N: usize> IoIndexedBuf for ArrayVec<T, N>

Available on crate feature arrayvec only.
source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

impl<T: IoIndexedBuf> IoIndexedBuf for &'static T

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

source§

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

source§

fn buf_nth(&self, n: usize) -> Option<&dyn IoBuf>

Implementors§