Trait syntax::codemap::FileLoader [] [src]

pub trait FileLoader {
    fn file_exists(&self, path: &Path) -> bool;
    fn read_file(&self, path: &Path) -> Result<String>;
}
Unstable (rustc_private)

An abstraction over the fs operations used by the Parser.

Required Methods

fn file_exists(&self, path: &Path) -> bool

Unstable (rustc_private)

Query the existence of a file.

fn read_file(&self, path: &Path) -> Result<String>

Unstable (rustc_private)

Read the contents of an UTF-8 file into memory.

Implementors