Trait readext::ReadExt
[−]
[src]
pub trait ReadExt: Read { fn read_into_vec(&mut self) -> Result<Vec<u8>> { ... } fn read_into_string(&mut self) -> Result<String> { ... } }
Provided Methods
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.
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
impl<T> ReadExt for T where
T: Read,