Struct garden::model::ApplicationContext
source · [−]pub struct ApplicationContext {
pub options: CommandOptions,
/* private fields */
}
Fields
options: CommandOptions
Implementations
sourceimpl ApplicationContext
impl ApplicationContext
pub fn new(config: Configuration, options: CommandOptions) -> Self
pub fn get_config(&self, id: ConfigId) -> &Configuration
pub fn get_config_mut(&mut self, id: ConfigId) -> &mut Configuration
pub fn get_root_id(&self) -> ConfigId
pub fn get_root_config(&self) -> &Configuration
pub fn get_root_config_mut(&mut self) -> &mut Configuration
sourcepub fn add_graft(&mut self, parent: ConfigId, config: Configuration) -> ConfigId
pub fn add_graft(&mut self, parent: ConfigId, config: Configuration) -> ConfigId
Add a child Configuration graft onto the parent ConfigId.
Trait Implementations
sourceimpl Clone for ApplicationContext
impl Clone for ApplicationContext
sourcefn clone(&self) -> ApplicationContext
fn clone(&self) -> ApplicationContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ApplicationContext
impl Debug for ApplicationContext
Auto Trait Implementations
impl !RefUnwindSafe for ApplicationContext
impl Send for ApplicationContext
impl !Sync for ApplicationContext
impl Unpin for ApplicationContext
impl UnwindSafe for ApplicationContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more