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

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

An abstraction over the fs operations used by the Parser.

Required Methods

Query the existence of a file.

Return an absolute path to a file, if possible.

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

Implementors