pub trait ReadFrom {
// Required method
fn read_from(path: &Path) -> Result<Self>
where Self: Sized;
}Expand description
Trait for types / structures that can be read from disk, either from a file or a directory.
pub trait ReadFrom {
// Required method
fn read_from(path: &Path) -> Result<Self>
where Self: Sized;
}Trait for types / structures that can be read from disk, either from a file or a directory.