pub struct NamespaceEntry { /* private fields */ }Expand description
One binding in a Namespace: a name, its resolution target, and its source.
Implementations§
Source§impl NamespaceEntry
impl NamespaceEntry
Sourcepub fn new(name: Symbol, target: Symbol, source: NamespaceBindingSource) -> Self
pub fn new(name: Symbol, target: Symbol, source: NamespaceBindingSource) -> Self
Construct an entry binding name to target with the given source.
Sourcepub fn source(&self) -> &NamespaceBindingSource
pub fn source(&self) -> &NamespaceBindingSource
Whether this binding is local or imported, and from where.
Trait Implementations§
Source§impl Clone for NamespaceEntry
impl Clone for NamespaceEntry
Source§fn clone(&self) -> NamespaceEntry
fn clone(&self) -> NamespaceEntry
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 NamespaceEntry
impl Debug for NamespaceEntry
impl Eq for NamespaceEntry
Source§impl PartialEq for NamespaceEntry
impl PartialEq for NamespaceEntry
Source§fn eq(&self, other: &NamespaceEntry) -> bool
fn eq(&self, other: &NamespaceEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceEntry
Auto Trait Implementations§
impl Freeze for NamespaceEntry
impl RefUnwindSafe for NamespaceEntry
impl Send for NamespaceEntry
impl Sync for NamespaceEntry
impl Unpin for NamespaceEntry
impl UnsafeUnpin for NamespaceEntry
impl UnwindSafe for NamespaceEntry
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