Skip to main content

IoSlice

Trait IoSlice 

Source
pub trait IoSlice<'a>: Sized + Deref<Target = [u8]> {
    // Required method
    fn advance(&mut self, n: usize);

    // Provided method
    fn advance_slices(bufs: &mut &mut [Self], n: usize) { ... }
}

Required Methods§

Source

fn advance(&mut self, n: usize)

Provided Methods§

Source

fn advance_slices(bufs: &mut &mut [Self], n: usize)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> IoSlice<'a> for &'a [u8]

Source§

fn advance(&mut self, n: usize)

Source§

impl<'a> IoSlice<'a> for IoSlice<'a>

Available on crate feature std only.
Source§

fn advance(&mut self, n: usize)

Source§

fn advance_slices(bufs: &mut &mut [Self], n: usize)

Implementors§