Struct syntex_syntax::codemap::RealFileLoader [] [src]

pub struct RealFileLoader;

A FileLoader that uses std::fs to load real files.

Trait Implementations

impl FileLoader for RealFileLoader
[src]

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

Query the existence of a file.

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

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