Struct rustc_borrowck::diagnostics::find_use::UseFinder
source · [−]struct UseFinder<'cx, 'tcx> {
body: &'cx Body<'tcx>,
regioncx: &'cx Rc<RegionInferenceContext<'tcx>>,
tcx: TyCtxt<'tcx>,
region_vid: RegionVid,
start_point: Location,
}Fields
body: &'cx Body<'tcx>regioncx: &'cx Rc<RegionInferenceContext<'tcx>>tcx: TyCtxt<'tcx>region_vid: RegionVidstart_point: LocationImplementations
sourceimpl<'cx, 'tcx> UseFinder<'cx, 'tcx>
impl<'cx, 'tcx> UseFinder<'cx, 'tcx>
fn find(&mut self) -> Option<Cause>
fn def_use(
&self,
location: Location,
thing: &dyn MirVisitable<'tcx>
) -> Option<DefUseResult>
Auto Trait Implementations
impl<'cx, 'tcx> !RefUnwindSafe for UseFinder<'cx, 'tcx>
impl<'cx, 'tcx> !Send for UseFinder<'cx, 'tcx>
impl<'cx, 'tcx> !Sync for UseFinder<'cx, 'tcx>
impl<'cx, 'tcx> Unpin for UseFinder<'cx, 'tcx> where
'tcx: 'cx,
impl<'cx, 'tcx> !UnwindSafe for UseFinder<'cx, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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