pub struct ImportedSymbol<Ns: NameNamespace> { /* private fields */ }Expand description
A selective import binding for one namespace.
Implementations§
Source§impl<Ns: NameNamespace> ImportedSymbol<Ns>
impl<Ns: NameNamespace> ImportedSymbol<Ns>
Sourcepub const fn resolved(&self) -> &ResolvedName<Ns>
pub const fn resolved(&self) -> &ResolvedName<Ns>
Canonical target identity of the imported symbol.
Sourcepub const fn visibility(&self) -> SymbolVisibility
pub const fn visibility(&self) -> SymbolVisibility
Visibility of this selective import when the importing module is itself imported.
Trait Implementations§
Source§impl<Ns: Clone + NameNamespace> Clone for ImportedSymbol<Ns>
impl<Ns: Clone + NameNamespace> Clone for ImportedSymbol<Ns>
Source§fn clone(&self) -> ImportedSymbol<Ns>
fn clone(&self) -> ImportedSymbol<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 ImportedSymbol<Ns>
impl<Ns: Debug + NameNamespace> Debug for ImportedSymbol<Ns>
impl<Ns: Eq + NameNamespace> Eq for ImportedSymbol<Ns>
Source§impl<Ns: PartialEq + NameNamespace> PartialEq for ImportedSymbol<Ns>
impl<Ns: PartialEq + NameNamespace> PartialEq for ImportedSymbol<Ns>
Source§fn eq(&self, other: &ImportedSymbol<Ns>) -> bool
fn eq(&self, other: &ImportedSymbol<Ns>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Ns: NameNamespace> StructuralPartialEq for ImportedSymbol<Ns>
Auto Trait Implementations§
impl<Ns> Freeze for ImportedSymbol<Ns>
impl<Ns> RefUnwindSafe for ImportedSymbol<Ns>where
Ns: RefUnwindSafe,
impl<Ns> Send for ImportedSymbol<Ns>where
Ns: Send,
impl<Ns> Sync for ImportedSymbol<Ns>where
Ns: Sync,
impl<Ns> Unpin for ImportedSymbol<Ns>where
Ns: Unpin,
impl<Ns> UnsafeUnpin for ImportedSymbol<Ns>
impl<Ns> UnwindSafe for ImportedSymbol<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.