pub struct ModuleSymbol<Ns: NameNamespace> { /* private fields */ }Expand description
A declaration symbol in one semantic namespace.
Implementations§
Source§impl<Ns: NameNamespace> ModuleSymbol<Ns>
impl<Ns: NameNamespace> ModuleSymbol<Ns>
Sourcepub const fn resolved(&self) -> &ResolvedName<Ns>
pub const fn resolved(&self) -> &ResolvedName<Ns>
Canonical resolved identity for this symbol.
Sourcepub const fn visibility(&self) -> SymbolVisibility
pub const fn visibility(&self) -> SymbolVisibility
Visibility of this symbol across module boundaries.
Trait Implementations§
Source§impl<Ns: Clone + NameNamespace> Clone for ModuleSymbol<Ns>
impl<Ns: Clone + NameNamespace> Clone for ModuleSymbol<Ns>
Source§fn clone(&self) -> ModuleSymbol<Ns>
fn clone(&self) -> ModuleSymbol<Ns>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Ns: Debug + NameNamespace> Debug for ModuleSymbol<Ns>
impl<Ns: Debug + NameNamespace> Debug for ModuleSymbol<Ns>
impl<Ns: Eq + NameNamespace> Eq for ModuleSymbol<Ns>
Source§impl<Ns: PartialEq + NameNamespace> PartialEq for ModuleSymbol<Ns>
impl<Ns: PartialEq + NameNamespace> PartialEq for ModuleSymbol<Ns>
Source§fn eq(&self, other: &ModuleSymbol<Ns>) -> bool
fn eq(&self, other: &ModuleSymbol<Ns>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Ns: NameNamespace> StructuralPartialEq for ModuleSymbol<Ns>
Auto Trait Implementations§
impl<Ns> Freeze for ModuleSymbol<Ns>
impl<Ns> RefUnwindSafe for ModuleSymbol<Ns>where
Ns: RefUnwindSafe,
impl<Ns> Send for ModuleSymbol<Ns>where
Ns: Send,
impl<Ns> Sync for ModuleSymbol<Ns>where
Ns: Sync,
impl<Ns> Unpin for ModuleSymbol<Ns>where
Ns: Unpin,
impl<Ns> UnsafeUnpin for ModuleSymbol<Ns>
impl<Ns> UnwindSafe for ModuleSymbol<Ns>where
Ns: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.