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.
pub trait Source {
// Required method
fn read(&self, path: &Path, dir: Option<&Path>) -> Result<(PathBuf, String)>;
}
Something that may provide file content by its name.