Trait ommui_file_loading::PathLoad [−][src]
pub trait PathLoad: Sized { fn load_from_path<P: AsRef<Path> + Debug>(path: P) -> Result<Self, Error>; }
A trait defining a method for loading data structure from a path.
Required Methods
fn load_from_path<P: AsRef<Path> + Debug>(path: P) -> Result<Self, Error>
Load the data structure from a path.
Implementors
impl<T> PathLoad for T where
T: DeserializeOwned,