[−][src]Struct rustc_resolve::ParentScope

pub struct ParentScope<'a> {
    module: &'a ModuleData<'a>,
    expansion: ExpnId,
    macro_rules: PtrKey<'a, Cell<MacroRulesScope<'a>>>,
    derives: &'a [Path],
}

Everything you need to know about a name's location to resolve it. Serves as a starting point for the scope visitor. This struct is currently used only for early resolution (imports and macros), but not for late resolution yet.

Fields

module: &'a ModuleData<'a>expansion: ExpnIdmacro_rules: PtrKey<'a, Cell<MacroRulesScope<'a>>>derives: &'a [Path]

Implementations

impl<'a> ParentScope<'a>[src]

pub fn module(
    module: &'a ModuleData<'a>,
    resolver: &Resolver<'a>
) -> ParentScope<'a>
[src]

Creates a parent scope with the passed argument used as the module scope component, and other scope components set to default empty values.

Trait Implementations

impl<'a> Clone for ParentScope<'a>[src]

impl<'a> Copy for ParentScope<'a>[src]

impl<'a> Debug for ParentScope<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ParentScope<'a>

impl<'a> !Send for ParentScope<'a>

impl<'a> !Sync for ParentScope<'a>

impl<'a> Unpin for ParentScope<'a>

impl<'a> !UnwindSafe for ParentScope<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.