pub struct NamespaceScope {
pub name: String,
pub opened: Vec<String>,
pub aliases: HashMap<String, String>,
pub visibility: HashMap<String, Visibility>,
pub parent: Option<Box<NamespaceScope>>,
}Expand description
A namespace scope.
Fields§
§name: StringNamespace name
opened: Vec<String>Opened namespaces within this scope
aliases: HashMap<String, String>Aliases (short name -> full name)
visibility: HashMap<String, Visibility>Visibility map for names in this namespace
parent: Option<Box<NamespaceScope>>Parent namespace (for nested scopes)
Trait Implementations§
Source§impl Clone for NamespaceScope
impl Clone for NamespaceScope
Source§fn clone(&self) -> NamespaceScope
fn clone(&self) -> NamespaceScope
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 moreAuto Trait Implementations§
impl Freeze for NamespaceScope
impl RefUnwindSafe for NamespaceScope
impl Send for NamespaceScope
impl Sync for NamespaceScope
impl Unpin for NamespaceScope
impl UnsafeUnpin for NamespaceScope
impl UnwindSafe for NamespaceScope
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