pub struct VectoredBufIter<T> { /* private fields */ }Expand description
An owned iterator over a vectored buffer.
Implementations§
Source§impl<T> VectoredBufIter<T>
impl<T> VectoredBufIter<T>
Sourcepub fn next(self) -> Result<VectoredBufIter<T>, T>
pub fn next(self) -> Result<VectoredBufIter<T>, T>
Create a new VectoredBufIter from an indexable container. If the
container is empty, return the buffer back in Err(T).
Trait Implementations§
Source§impl<T> IntoInner for VectoredBufIter<T>
impl<T> IntoInner for VectoredBufIter<T>
Source§fn into_inner(self) -> <VectoredBufIter<T> as IntoInner>::Inner
fn into_inner(self) -> <VectoredBufIter<T> as IntoInner>::Inner
Get the inner buffer.
Source§impl<T> IoBuf for VectoredBufIter<T>where
T: IoVectoredBuf,
impl<T> IoBuf for VectoredBufIter<T>where
T: IoVectoredBuf,
Source§fn buf_capacity(&self) -> usize
fn buf_capacity(&self) -> usize
Total size of the buffer, including uninitialized memory, if any. Read more
Source§fn slice(self, range: impl RangeBounds<usize>) -> Slice<Self>where
Self: Sized,
fn slice(self, range: impl RangeBounds<usize>) -> Slice<Self>where
Self: Sized,
Returns a view of the buffer with the specified range. Read more
Source§impl<T> IoBufMut for VectoredBufIter<T>where
T: IoVectoredBufMut,
impl<T> IoBufMut for VectoredBufIter<T>where
T: IoVectoredBufMut,
Source§fn as_buf_mut_ptr(&mut self) -> *mut u8
fn as_buf_mut_ptr(&mut self) -> *mut u8
Returns a raw mutable pointer to the vector’s buffer. Read more
Source§fn as_mut_slice(&mut self) -> &mut [MaybeUninit<u8>]
fn as_mut_slice(&mut self) -> &mut [MaybeUninit<u8>]
Get the uninitialized part of the buffer.
Source§unsafe fn as_io_slice_mut(&mut self) -> IoSliceMut
unsafe fn as_io_slice_mut(&mut self) -> IoSliceMut
Create an
IoSliceMut of the uninitialized part of the buffer. Read moreSource§impl<T> SetBufInit for VectoredBufIter<T>where
T: IoVectoredBuf + SetBufInit,
impl<T> SetBufInit for VectoredBufIter<T>where
T: IoVectoredBuf + SetBufInit,
Source§unsafe fn set_buf_init(&mut self, len: usize)
unsafe fn set_buf_init(&mut self, len: usize)
Set the buffer length. If
len is less than the current length, nothing
should happen. Read moreAuto Trait Implementations§
impl<T> Freeze for VectoredBufIter<T>where
T: Freeze,
impl<T> RefUnwindSafe for VectoredBufIter<T>where
T: RefUnwindSafe,
impl<T> Send for VectoredBufIter<T>where
T: Send,
impl<T> Sync for VectoredBufIter<T>where
T: Sync,
impl<T> Unpin for VectoredBufIter<T>where
T: Unpin,
impl<T> UnwindSafe for VectoredBufIter<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more