pub struct ConfigResolver<Key, ConfigValue> { /* private fields */ }Expand description
Structured configuration holding overrides with default values.
Implementations§
Source§impl<Key, ConfigValue> ConfigResolver<Key, ConfigValue>
impl<Key, ConfigValue> ConfigResolver<Key, ConfigValue>
Sourcepub fn new(base: ConfigValue, overrides: HashMap<Key, ConfigValue>) -> Self
pub fn new(base: ConfigValue, overrides: HashMap<Key, ConfigValue>) -> Self
Create a new instance of [Config].
Trait Implementations§
Auto Trait Implementations§
impl<Key, ConfigValue> Freeze for ConfigResolver<Key, ConfigValue>where
ConfigValue: Freeze,
impl<Key, ConfigValue> RefUnwindSafe for ConfigResolver<Key, ConfigValue>where
ConfigValue: RefUnwindSafe,
Key: RefUnwindSafe,
impl<Key, ConfigValue> Send for ConfigResolver<Key, ConfigValue>
impl<Key, ConfigValue> Sync for ConfigResolver<Key, ConfigValue>
impl<Key, ConfigValue> Unpin for ConfigResolver<Key, ConfigValue>
impl<Key, ConfigValue> UnwindSafe for ConfigResolver<Key, ConfigValue>where
ConfigValue: UnwindSafe,
Key: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more