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.
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 Freeze for Scope
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more