pub struct ModuleNode<'tree> { /* private fields */ }Expand description
Immutable object-oriented interface to a ModuleTree
Implementations§
Source§impl ModuleNode<'_>
impl ModuleNode<'_>
Sourcepub fn item(self, name: &Sym) -> Option<usize>
pub fn item(self, name: &Sym) -> Option<usize>
Gets a stack value in this node with the given name
Sourcepub fn children(&self) -> Option<&HashMap<Sym, usize>>
pub fn children(&self) -> Option<&HashMap<Sym, usize>>
Returns a reference to this node’s children, if present
Sourcepub fn items(&self) -> Option<&StackBinds>
pub fn items(&self) -> Option<&StackBinds>
Returns a reference to this node’s items, if present
Trait Implementations§
Source§impl<'tree> Clone for ModuleNode<'tree>
impl<'tree> Clone for ModuleNode<'tree>
Source§fn clone(&self) -> ModuleNode<'tree>
fn clone(&self) -> ModuleNode<'tree>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for ModuleNode<'tree>
impl<'tree> Debug for ModuleNode<'tree>
impl<'tree> Copy for ModuleNode<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for ModuleNode<'tree>
impl<'tree> RefUnwindSafe for ModuleNode<'tree>
impl<'tree> Send for ModuleNode<'tree>
impl<'tree> Sync for ModuleNode<'tree>
impl<'tree> Unpin for ModuleNode<'tree>
impl<'tree> UnwindSafe for ModuleNode<'tree>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more