pub trait Source {
// Required method
fn read(&self, path: &Path, dir: Option<&Path>) -> Result<(PathBuf, String)>;
}Expand description
Something that may provide file content by its name.
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".