VecBufResultExt

Trait VecBufResultExt 

pub trait VecBufResultExt {
    // Required method
    unsafe fn map_vec_advanced(self) -> Self;
}
Expand description

Trait to update the buffer length inside the BufResult.

Required Methods§

unsafe fn map_vec_advanced(self) -> Self

Call SetLen::advance_vec_to if the result is Ok.

§Safety

The result value must be a valid length to advance to.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T> VecBufResultExt for BufResult<usize, T>
where T: SetLen + IoVectoredBuf,

§

impl<T, C, O> VecBufResultExt for BufResult<(usize, usize, O), (T, C)>
where T: SetLen + IoVectoredBuf, C: SetLen + IoBuf,

§

impl<T, O> VecBufResultExt for BufResult<(usize, O), T>
where T: SetLen + IoVectoredBuf,