struct BuildReducedGraphVisitor<'a, 'b> {
r: &'b mut Resolver<'a>,
parent_scope: ParentScope<'a>,
}Fields
r: &'b mut Resolver<'a>parent_scope: ParentScope<'a>Implementations
fn resolve_visibility_speculative<'ast>(
&mut self,
vis: &'ast Visibility,
speculative: bool
) -> Result<Visibility, VisResolutionError<'ast>>
fn add_import(
&mut self,
module_path: Vec<Segment>,
kind: ImportKind<'a>,
span: Span,
id: NodeId,
item: &Item,
root_span: Span,
root_id: NodeId,
vis: Visibility
)
fn build_reduced_graph_for_use_tree(
&mut self,
use_tree: &UseTree,
id: NodeId,
parent_prefix: &[Segment],
nested: bool,
item: &Item,
vis: Visibility,
root_span: Span
)
Constructs the reduced graph for one item.
fn build_reduced_graph_for_extern_crate(
&mut self,
orig_name: Option<Symbol>,
item: &Item,
local_def_id: LocalDefId,
vis: Visibility,
parent: &'a ModuleData<'a>
)
Constructs the reduced graph for one foreign item.
Builds the reduced graph for a single item in an external crate.
fn add_macro_use_binding(
&mut self,
name: Symbol,
binding: &'a NameBinding<'a>,
span: Span,
allow_shadowing: bool
)
Returns true if we should consider the underlying extern crate to be used.
Returns true if this attribute list contains macro_use.
Visit invocation in context in which it can emit a named item (possibly macro_rules)
directly into its parent scope’s module.
Trait Implementations
fn visit_enum_def(
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
item_id: NodeId,
Span
)
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for BuildReducedGraphVisitor
impl<'a, 'b> !Send for BuildReducedGraphVisitor
impl<'a, 'b> !Sync for BuildReducedGraphVisitor
impl<'a, 'b> Unpin for BuildReducedGraphVisitor where
'a: 'b,
impl<'a, 'b> !UnwindSafe for BuildReducedGraphVisitor
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes