BufResultExt

Trait BufResultExt 

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

Trait to update the buffer length inside the BufResult.

Required Methods§

unsafe fn map_advanced(self) -> Self

Call SetLen::advance_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> BufResultExt for BufResult<usize, T>
where T: SetLen + IoBuf,

§

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

§

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