Trait Config

Source
pub trait Config {
    // Required method
    fn load<O: Options>(_: &O) -> Self;
}
Expand description

Trait required for loading Config from file

Required Methods§

Source

fn load<O: Options>(_: &O) -> Self

Parse options and return it

Implementers should use the die! macro to handle failure.

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§