Trait virtual_filesystem::file::File
source · pub trait File: Read + Write + Seek {
// Required method
fn metadata(&self) -> Result<Metadata>;
// Provided methods
fn read_into_vec(&mut self) -> Result<Vec<u8>> { ... }
fn read_into_string(&mut self) -> Result<String> { ... }
}Expand description
A file that can be read.
Required Methods§
Provided Methods§
sourcefn read_into_vec(&mut self) -> Result<Vec<u8>>
fn read_into_vec(&mut self) -> Result<Vec<u8>>
Reads a file into a vector.
sourcefn read_into_string(&mut self) -> Result<String>
fn read_into_string(&mut self) -> Result<String>
Reads a file into a string.