[][src]Trait ommui_file_loading::PathLoad

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.

Loading content...

Implementors

impl<T> PathLoad for T where
    T: DeserializeOwned
[src]

Loading content...