Trait ReadExt

Source
pub trait ReadExt: Read {
    // Provided methods
    fn read<'a>(&'a mut self, buffer: &'a mut [u8]) -> Read<'a, Self> 
       where Self: Unpin { ... }
    fn read_exact<'a>(&'a mut self, buffer: &'a mut [u8]) -> ReadExact<'a, Self> 
       where Self: Unpin { ... }
}

Provided Methods§

Source

fn read<'a>(&'a mut self, buffer: &'a mut [u8]) -> Read<'a, Self>
where Self: Unpin,

Source

fn read_exact<'a>(&'a mut self, buffer: &'a mut [u8]) -> ReadExact<'a, Self>
where Self: Unpin,

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§

Source§

impl<A> ReadExt for A
where A: Read,