pub trait FileLoader {
// Required methods
fn file_exists(&self, path: &Path) -> bool;
fn read_file(&self, path: &Path) -> Result<String>;
fn read_binary_file(&self, path: &Path) -> Result<Lrc<[u8]>>;
}
Expand description
An abstraction over the fs operations used by the Parser.
Required Methods§
Sourcefn file_exists(&self, path: &Path) -> bool
fn file_exists(&self, path: &Path) -> bool
Query the existence of a file.