pub trait FallbackConfigReset: AnyConfig + Sync {
// Required methods
fn reset(&self, key: &Txt);
fn can_reset(&self, key: Txt) -> Var<bool>;
fn clone_boxed(&self) -> Box<dyn FallbackConfigReset>;
}Expand description
Reset controls of a FallbackConfig.
Required Methods§
Sourcefn reset(&self, key: &Txt)
fn reset(&self, key: &Txt)
Removes the key from the config source and reverts all active variables to the fallback source.
Sourcefn clone_boxed(&self) -> Box<dyn FallbackConfigReset>
fn clone_boxed(&self) -> Box<dyn FallbackConfigReset>
Clone a reference to the config.
Trait Implementations§
Source§impl Clone for Box<dyn FallbackConfigReset>
impl Clone for Box<dyn FallbackConfigReset>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more