pub enum NamespaceKind {
Package,
Module,
}Expand description
Whether a Namespace is a package or a module scope.
Variants§
Package
A package: a top-level namespace that other namespaces import from.
Module
A module: a nested scope that imports and re-resolves bindings.
Trait Implementations§
Source§impl Clone for NamespaceKind
impl Clone for NamespaceKind
Source§fn clone(&self) -> NamespaceKind
fn clone(&self) -> NamespaceKind
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 moreimpl Copy for NamespaceKind
Source§impl Debug for NamespaceKind
impl Debug for NamespaceKind
impl Eq for NamespaceKind
Source§impl PartialEq for NamespaceKind
impl PartialEq for NamespaceKind
Source§fn eq(&self, other: &NamespaceKind) -> bool
fn eq(&self, other: &NamespaceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceKind
Auto Trait Implementations§
impl Freeze for NamespaceKind
impl RefUnwindSafe for NamespaceKind
impl Send for NamespaceKind
impl Sync for NamespaceKind
impl Unpin for NamespaceKind
impl UnsafeUnpin for NamespaceKind
impl UnwindSafe for NamespaceKind
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