Trait Configuration

Source
pub trait Configuration<C>
where C: Config, Self::Config: Borrow<C>,
{ type Config: Config; // Required methods fn root(&self) -> &C; fn set(&mut self, config: Self::Config); fn set_root(&mut self, config: C); }
Expand description

Configuration describes composite configuration objects; A configuration object is allowed to inherit from another configuration object

Required Associated Types§

Required Methods§

Source

fn root(&self) -> &C

Source

fn set(&mut self, config: Self::Config)

Source

fn set_root(&mut self, config: C)

Implementors§

Source§

impl<C, D> Configuration<C> for D
where C: Config, D: Config + BorrowMut<C>,