readext

Trait ReadExt

Source
pub trait ReadExt: Read {
    // Provided methods
    fn read_into_vec(&mut self) -> Result<Vec<u8>> { ... }
    fn read_into_string(&mut self) -> Result<String> { ... }
}

Provided Methods§

Source

fn read_into_vec(&mut self) -> Result<Vec<u8>>

Read all bytes until EOF in this source, returning them as a new Vec.

See read_to_end for other semantics.

Source

fn read_into_string(&mut self) -> Result<String>

Read all bytes until EOF in this source, returning them as a new buffer.

See read_to_string for other semantics.

Implementors§

Source§

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