Trait rustc_ap_rustc_span::source_map::FileLoader [−][src]
pub trait FileLoader { fn file_exists(&self, path: &Path) -> bool; fn read_file(&self, path: &Path) -> Result<String>; }
Expand description
An abstraction over the fs operations used by the Parser.
Required methods
fn file_exists(&self, path: &Path) -> bool
[src]
Expand description
Query the existence of a file.
fn read_file(&self, path: &Path) -> Result<String>
[src]
Expand description
Read the contents of an UTF-8 file into memory.
Implementors
impl FileLoader for RealFileLoader
[src]
impl FileLoader for RealFileLoader
[src]