[−][src]Struct rustc_resolve::ResolverArenas

pub struct ResolverArenas<'a> {
    modules: TypedArena<ModuleData<'a>>,
    local_modules: RefCell<Vec<&'a ModuleData<'a>>>,
    imports: TypedArena<Import<'a>>,
    name_resolutions: TypedArena<RefCell<NameResolution<'a>>>,
    ast_paths: TypedArena<Path>,
    dropless: DroplessArena,
}

Nothing really interesting here; it just provides memory for the rest of the crate.

Fields

modules: TypedArena<ModuleData<'a>>local_modules: RefCell<Vec<&'a ModuleData<'a>>>imports: TypedArena<Import<'a>>name_resolutions: TypedArena<RefCell<NameResolution<'a>>>ast_paths: TypedArena<Path>dropless: DroplessArena

Implementations

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

pub(crate) fn alloc_module(
    &'a self,
    module: ModuleData<'a>
) -> &'a ModuleData<'a>
[src]

pub(crate) fn local_modules(&'a self) -> Ref<'a, Vec<&'a ModuleData<'a>>>[src]

pub(crate) fn alloc_name_binding(
    &'a self,
    name_binding: NameBinding<'a>
) -> &'a NameBinding<'a>
[src]

pub(crate) fn alloc_import(&'a self, import: Import<'a>) -> &'a Import<'_>[src]

pub(crate) fn alloc_name_resolution(&'a self) -> &'a RefCell<NameResolution<'a>>[src]

pub(crate) fn alloc_macro_rules_scope(
    &'a self,
    scope: MacroRulesScope<'a>
) -> PtrKey<'a, Cell<MacroRulesScope<'a>>>
[src]

pub(crate) fn alloc_macro_rules_binding(
    &'a self,
    binding: MacroRulesBinding<'a>
) -> &'a MacroRulesBinding<'a>
[src]

pub(crate) fn alloc_ast_paths(&'a self, paths: &[Path]) -> &'a [Path][src]

pub(crate) fn alloc_pattern_spans(
    &'a self,
    spans: impl Iterator<Item = Span>
) -> &'a [Span]
[src]

Trait Implementations

impl<'a> Default for ResolverArenas<'a>[src]

Auto Trait Implementations

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

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

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

impl<'a> Unpin for ResolverArenas<'a>

impl<'a> !UnwindSafe for ResolverArenas<'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, 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.