Skip to main content

Loader

Trait Loader 

Source
pub trait Loader {
    // Required method
    fn load(&mut self, path: &Path) -> Result<String>;
}
Expand description

Supplies included file text, so tests can run without a filesystem.

Required Methods§

Source

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

Implementors§

Source§

impl<F> Loader for F
where F: FnMut(&Path) -> Result<String>,