pub struct Scope { /* private fields */ }Implementations§
source§impl Scope
impl Scope
sourcepub fn component<'a>(&self, hierarchy: &'a Hierarchy) -> Option<&'a str>
pub fn component<'a>(&self, hierarchy: &'a Hierarchy) -> Option<&'a str>
Local name of the component, e.g., the name of the module that was instantiated.
sourcepub fn full_name<'a>(&self, hierarchy: &Hierarchy) -> String
pub fn full_name<'a>(&self, hierarchy: &Hierarchy) -> String
Full hierarchical name of the scope.
pub fn scope_type(&self) -> ScopeType
pub fn source_loc<'a>(&self, hierarchy: &'a Hierarchy) -> Option<(&'a str, u64)>
pub fn instantiation_source_loc<'a>( &self, hierarchy: &'a Hierarchy ) -> Option<(&'a str, u64)>
pub fn items<'a>( &'a self, hierarchy: &'a Hierarchy ) -> HierarchyItemIterator<'a>
pub fn vars<'a>( &'a self, hierarchy: &'a Hierarchy ) -> HierarchyVarRefIterator<'a>
pub fn scopes<'a>( &'a self, hierarchy: &'a Hierarchy ) -> HierarchyScopeRefIterator<'a>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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