[−][src]Struct rustc_resolve::ResolverArenas
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: DroplessArenaImplementations
impl<'a> ResolverArenas<'a>[src]
pub(crate) fn alloc_module(
&'a self,
module: ModuleData<'a>
) -> &'a ModuleData<'a>[src]
&'a self,
module: ModuleData<'a>
) -> &'a ModuleData<'a>
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]
&'a self,
name_binding: NameBinding<'a>
) -> &'a NameBinding<'a>
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]
&'a self,
scope: MacroRulesScope<'a>
) -> PtrKey<'a, Cell<MacroRulesScope<'a>>>
pub(crate) fn alloc_macro_rules_binding(
&'a self,
binding: MacroRulesBinding<'a>
) -> &'a MacroRulesBinding<'a>[src]
&'a self,
binding: MacroRulesBinding<'a>
) -> &'a MacroRulesBinding<'a>
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]
&'a self,
spans: impl Iterator<Item = Span>
) -> &'a [Span]
Trait Implementations
impl<'a> Default for ResolverArenas<'a>[src]
pub fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,