[][src]Trait preftool::Settings

pub trait Settings {
    fn bind<C>(&mut self, config: C)
    where
        C: Configuration
; fn get<C>(config: C) -> Self
    where
        C: Configuration,
        Self: Default
, { ... } }

Settings struct that can be bound by configuration.

Required methods

fn bind<C>(&mut self, config: C) where
    C: Configuration

Bind values in self from configuration.

Loading content...

Provided methods

fn get<C>(config: C) -> Self where
    C: Configuration,
    Self: Default

Get a new settings value from configuration.

Loading content...

Implementors

Loading content...