Struct rustc_resolve::def_collector::DefCollector [−][src]
struct DefCollector<'a, 'b> {
resolver: &'a mut Resolver<'b>,
parent_def: LocalDefId,
impl_trait_context: ImplTraitContext,
expansion: LocalExpnId,
}
Expand description
Creates DefId
s for nodes in the AST.
Fields
resolver: &'a mut Resolver<'b>
parent_def: LocalDefId
impl_trait_context: ImplTraitContext
expansion: LocalExpnId
Implementations
fn with_impl_trait<F: FnOnce(&mut Self)>(
&mut self,
impl_trait_context: ImplTraitContext,
f: F
)
Trait Implementations
fn visit_enum_def(
&mut self,
enum_definition: &'ast EnumDef,
generics: &'ast Generics,
item_id: NodeId,
Span
)
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for DefCollector<'a, 'b>
impl<'a, 'b> !Send for DefCollector<'a, 'b>
impl<'a, 'b> !Sync for DefCollector<'a, 'b>
impl<'a, 'b> Unpin for DefCollector<'a, 'b> where
'b: 'a,
impl<'a, 'b> !UnwindSafe for DefCollector<'a, 'b>
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: 24 bytes