[−][src]Struct rustc_infer::infer::error_reporting::need_type_info::FindHirNodeVisitor

pub(in infer::error_reporting::need_type_info) struct FindHirNodeVisitor<'a, 'tcx> {
    infcx: &'a InferCtxt<'a, 'tcx>,
    target: GenericArg<'tcx>,
    target_span: Span,
    found_node_ty: Option<Ty<'tcx>>,
    found_local_pattern: Option<&'tcx Pat<'tcx>>,
    found_arg_pattern: Option<&'tcx Pat<'tcx>>,
    found_closure: Option<&'tcx Expr<'tcx>>,
    found_method_call: Option<&'tcx Expr<'tcx>>,
    found_exact_method_call: Option<&'tcx Expr<'tcx>>,
}

Fields

infcx: &'a InferCtxt<'a, 'tcx>target: GenericArg<'tcx>target_span: Spanfound_node_ty: Option<Ty<'tcx>>found_local_pattern: Option<&'tcx Pat<'tcx>>found_arg_pattern: Option<&'tcx Pat<'tcx>>found_closure: Option<&'tcx Expr<'tcx>>found_method_call: Option<&'tcx Expr<'tcx>>found_exact_method_call: Option<&'tcx Expr<'tcx>>

Implementations

impl<'a, 'tcx> FindHirNodeVisitor<'a, 'tcx>[src]

pub(in infer::error_reporting::need_type_info) fn new(
    infcx: &'a InferCtxt<'a, 'tcx>,
    target: GenericArg<'tcx>,
    target_span: Span
) -> Self
[src]

pub(in infer::error_reporting::need_type_info) fn node_ty_contains_target(
    &mut self,
    hir_id: HirId
) -> Option<Ty<'tcx>>
[src]

Trait Implementations

impl<'a, 'tcx> Visitor<'tcx> for FindHirNodeVisitor<'a, 'tcx>[src]

type Map = Map<'tcx>

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for FindHirNodeVisitor<'a, 'tcx>

impl<'a, 'tcx> !Send for FindHirNodeVisitor<'a, 'tcx>

impl<'a, 'tcx> !Sync for FindHirNodeVisitor<'a, 'tcx>

impl<'a, 'tcx> Unpin for FindHirNodeVisitor<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for FindHirNodeVisitor<'a, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]