Enum rustc_resolve::ScopeSet [−][src]
pub(crate) enum ScopeSet<'a> {
All(Namespace, bool),
AbsolutePath(Namespace),
Macro(MacroKind),
Late(Namespace, &'a ModuleData<'a>, Option<NodeId>),
}Expand description
Names from different contexts may want to visit different subsets of all specific scopes with different restrictions when looking up the resolution. This enum is currently used only for early resolution (imports and macros), but not for late resolution yet.
Variants
Expand description
All scopes with the given namespace.
AbsolutePath(Namespace)Expand description
Crate root, then extern prelude (used for mixed 2015-2018 mode in macros).
Macro(MacroKind)Expand description
All scopes with macro namespace and the given macro kind restriction.
Late(Namespace, &'a ModuleData<'a>, Option<NodeId>)Expand description
All scopes with the given namespace, used for partially performing late resolution. The node id enables lints and is used for reporting them.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ScopeSet<'a>
impl<'a> !Send for ScopeSet<'a>
impl<'a> !Sync for ScopeSet<'a>
impl<'a> Unpin for ScopeSet<'a>
impl<'a> !UnwindSafe for ScopeSet<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more