Struct rustc_borrowck::diagnostics::find_use::DefUseVisitor
source · [−]struct DefUseVisitor<'cx, 'tcx> {
body: &'cx Body<'tcx>,
tcx: TyCtxt<'tcx>,
region_vid: RegionVid,
def_use_result: Option<DefUseResult>,
}Fields
body: &'cx Body<'tcx>tcx: TyCtxt<'tcx>region_vid: RegionViddef_use_result: Option<DefUseResult>Trait Implementations
fn visit_ascribe_user_ty(
&mut self,
place: &Place,
variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn visit_projection(
&mut self,
place_ref: PlaceRef,
context: PlaceContext,
location: Location
)
fn visit_projection_elem(
&mut self,
local: Local,
proj_base: &[ProjectionElem<Local, &TyS>],
elem: ProjectionElem<Local, &TyS>,
context: PlaceContext,
location: Location
)
fn super_projection(
&mut self,
place_ref: PlaceRef,
context: PlaceContext,
location: Location
)
fn super_projection_elem(
&mut self,
_local: Local,
_proj_base: &[ProjectionElem<Local, &TyS>],
elem: ProjectionElem<Local, &TyS>,
_context: PlaceContext,
location: Location
)
fn visit_user_type_annotation(
&mut self,
index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation
)
fn super_ascribe_user_ty(
&mut self,
place: &Place,
_variance: &Variance,
user_ty: &UserTypeProjection,
location: Location
)
fn super_user_type_annotation(
&mut self,
_index: UserTypeAnnotationIndex,
ty: &CanonicalUserTypeAnnotation
)
Auto Trait Implementations
impl<'cx, 'tcx> !RefUnwindSafe for DefUseVisitor
impl<'cx, 'tcx> !Send for DefUseVisitor
impl<'cx, 'tcx> !Sync for DefUseVisitor
impl<'cx, 'tcx> Unpin for DefUseVisitor where
'tcx: 'cx,
impl<'cx, 'tcx> !UnwindSafe for DefUseVisitor
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: 32 bytes