Struct garden::model::ApplicationContext [−][src]
pub struct ApplicationContext { pub options: CommandOptions, // some fields omitted }
Fields
options: CommandOptions
Implementations
impl ApplicationContext
[src]
impl ApplicationContext
[src]pub fn new(config: Configuration, options: CommandOptions) -> Self
[src]
pub fn get_config(&self, id: ConfigId) -> &Configuration
[src]
pub fn get_config_mut(&mut self, id: ConfigId) -> &mut Configuration
[src]
pub fn get_root_id(&self) -> ConfigId
[src]
pub fn get_root_config(&self) -> &Configuration
[src]
pub fn get_root_config_mut(&mut self) -> &mut Configuration
[src]
pub fn add_graft(&mut self, parent: ConfigId, config: Configuration) -> ConfigId
[src]
pub fn add_graft(&mut self, parent: ConfigId, config: Configuration) -> ConfigId
[src]Add a child Configuration graft onto the parent ConfigId.
Trait Implementations
impl Clone for ApplicationContext
[src]
impl Clone for ApplicationContext
[src]fn clone(&self) -> ApplicationContext
[src]
fn clone(&self) -> ApplicationContext
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ApplicationContext
[src]
impl Debug for ApplicationContext
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more