pub trait GetConfig {
type Config;
// Required methods
fn config(&self) -> &Self::Config;
fn config_mut(&mut self) -> &mut Self::Config;
}
Expand description
Allows to get mutable and immutable references to configuration options.
Required Associated Types§
Required Methods§
Sourcefn config(&self) -> &Self::Config
fn config(&self) -> &Self::Config
Returns an immutable reference to the configuration options used by
self
.
Sourcefn config_mut(&mut self) -> &mut Self::Config
fn config_mut(&mut self) -> &mut Self::Config
Returns a mutable reference to the configuration options used by
self
.