pub trait Loader {
// Required method
fn load(&mut self, path: &Path) -> Result<String, Error>;
// Provided method
fn load_bytes(&mut self, path: &Path) -> Result<Vec<u8>, Error> { ... }
}Expand description
Supplies included file text, so tests can run without a filesystem.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".