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§
Sourcefn read_into_vec(&mut self) -> Result<Vec<u8>>
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.
Sourcefn read_into_string(&mut self) -> Result<String>
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.