Skip to main content

Load

Trait Load 

Source
pub trait Load: Sealed {
    // Required method
    fn load<F: FromPath>(&self) -> Result<F, F::Error>;
}
Expand description

Loading values from paths (sealed extension trait).

Required Methods§

Source

fn load<F: FromPath>(&self) -> Result<F, F::Error>

Loads the value of type F from the path.

§Errors

Returns F::Error when loading fails.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P: AsRef<Path> + ?Sized> Load for P