Loader

Trait Loader 

Source
pub trait Loader {
    type Output;

    // Required methods
    fn load<P: AsRef<Path>>(filename: P) -> Result<Self::Output>;
    fn load_from_reader<R: Read>(reader: &mut R) -> Result<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn load<P: AsRef<Path>>(filename: P) -> Result<Self::Output>

Source

fn load_from_reader<R: Read>(reader: &mut R) -> Result<Self::Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Loader for T