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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".