pub unsafe trait IoVectoredBuf: Unpin + 'static {
    type Item: IoBuf;
    type Iter<'a>: Iterator<Item = &'a Self::Item>;

    // Required method
    fn buf_iter(&self) -> Self::Iter<'_>;
}
Expand description

A trait for vectored buffers.

Safety

See IoBuf.

Required Associated Types§

source

type Item: IoBuf

The inner buffer type.

source

type Iter<'a>: Iterator<Item = &'a Self::Item>

The iterator type returned by IoVectoredBuf::buf_iter.

Required Methods§

source

fn buf_iter(&self) -> Self::Iter<'_>

An iterator of the inner buffers.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

type Item = T

§

type Iter<'a> = Iter<'a, <Vec<T, A> as IoVectoredBuf>::Item>

source§

fn buf_iter(&self) -> Self::Iter<'_>

source§

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

§

type Item = T

§

type Iter<'a> = Iter<'a, <[T; N] as IoVectoredBuf>::Item>

source§

fn buf_iter(&self) -> Self::Iter<'_>

source§

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

§

type Item = T

§

type Iter<'a> = Iter<'a, <ArrayVec<T, N> as IoVectoredBuf>::Item>

source§

fn buf_iter(&self) -> Self::Iter<'_>

Implementors§