Struct garden::model::TreeContext
source · [−]pub struct TreeContext {
pub tree: TreeIndex,
pub config: Option<ConfigId>,
pub garden: Option<GardenIndex>,
pub group: Option<GroupIndex>,
}
Fields
tree: TreeIndex
config: Option<ConfigId>
garden: Option<GardenIndex>
group: Option<GroupIndex>
Implementations
sourceimpl TreeContext
impl TreeContext
sourcepub fn new(
tree: TreeIndex,
config: Option<ConfigId>,
garden: Option<GardenIndex>,
group: Option<GroupIndex>
) -> Self
pub fn new(
tree: TreeIndex,
config: Option<ConfigId>,
garden: Option<GardenIndex>,
group: Option<GroupIndex>
) -> Self
Construct a new TreeContext.
Trait Implementations
sourceimpl Clone for TreeContext
impl Clone for TreeContext
sourcefn clone(&self) -> TreeContext
fn clone(&self) -> TreeContext
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 TreeContext
impl Debug for TreeContext
Auto Trait Implementations
impl RefUnwindSafe for TreeContext
impl Send for TreeContext
impl Sync for TreeContext
impl Unpin for TreeContext
impl UnwindSafe for TreeContext
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