Trait bytesutil::ReadToVec

source ·
pub trait ReadToVec: Read {
    // Provided method
    fn read_to_vec(&mut self) -> Result<Vec<u8>> { ... }
}
Available on crate feature std only.
Expand description

Allows reading an entire IO stream into a vec.

Provided Methods§

source

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

Loads this stream into memory.

Errors

An Error is returned if the stream could not be loaded.

Implementors§