Trait compio_buf::IoVectoredBufMut

source ·
pub trait IoVectoredBufMut: IoVectoredBuf<Buf: IoBufMut, OwnedIter: IoBufMut> + SetBufInit {
    // Required method
    fn iter_buf_mut(
        &mut self,
    ) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>;

    // Provided method
    unsafe fn io_slices_mut(&mut self) -> Vec<IoSliceMut> { ... }
}
Expand description

A trait for mutable vectored buffers.

Required Methods§

source

fn iter_buf_mut(&mut self) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>

An iterator over the buffers that’s either owned or mutably borrowed with MaybeOwnedMut.

Provided Methods§

source

unsafe fn io_slices_mut(&mut self) -> Vec<IoSliceMut>

An iterator for the IoSliceMuts of the buffers.

§Safety

The return slice will not live longer than self. It is static to provide convenience from writing self-referenced structure.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

fn iter_buf_mut(&mut self) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>

source§

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

source§

fn iter_buf_mut(&mut self) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>

source§

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

source§

fn iter_buf_mut(&mut self) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>

source§

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

Available on crate feature arrayvec only.
source§

fn iter_buf_mut(&mut self) -> impl Iterator<Item = MaybeOwnedMut<'_, Self::Buf>>

Implementors§