pub struct ModuleIndexSymbol { /* private fields */ }Expand description
Index symbol plus the variants declared by that index.
Implementations§
Source§impl ModuleIndexSymbol
impl ModuleIndexSymbol
Sourcepub const fn resolved(&self) -> &ResolvedName<Index>
pub const fn resolved(&self) -> &ResolvedName<Index>
Canonical resolved identity for the index type.
Sourcepub const fn visibility(&self) -> SymbolVisibility
pub const fn visibility(&self) -> SymbolVisibility
Visibility of the index declaration.
Sourcepub const fn variants(&self) -> &HashMap<IndexVariantName, Span>
pub const fn variants(&self) -> &HashMap<IndexVariantName, Span>
Variant names declared by this index, keyed by leaf name.
Trait Implementations§
Source§impl Clone for ModuleIndexSymbol
impl Clone for ModuleIndexSymbol
Source§fn clone(&self) -> ModuleIndexSymbol
fn clone(&self) -> ModuleIndexSymbol
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 Debug for ModuleIndexSymbol
impl Debug for ModuleIndexSymbol
impl Eq for ModuleIndexSymbol
Source§impl PartialEq for ModuleIndexSymbol
impl PartialEq for ModuleIndexSymbol
Source§fn eq(&self, other: &ModuleIndexSymbol) -> bool
fn eq(&self, other: &ModuleIndexSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleIndexSymbol
Auto Trait Implementations§
impl Freeze for ModuleIndexSymbol
impl RefUnwindSafe for ModuleIndexSymbol
impl Send for ModuleIndexSymbol
impl Sync for ModuleIndexSymbol
impl Unpin for ModuleIndexSymbol
impl UnsafeUnpin for ModuleIndexSymbol
impl UnwindSafe for ModuleIndexSymbol
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.