Trait rustc_middle::ty::fold::TypeVisitor[][src]

pub trait TypeVisitor<'tcx>: Sized {
    type BreakTy = !;
    fn visit_binder<T: TypeFoldable<'tcx>>(
        &mut self,
        t: &Binder<'tcx, T>
    ) -> ControlFlow<Self::BreakTy> { ... }
fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy> { ... }
fn visit_region(&mut self, r: Region<'tcx>) -> ControlFlow<Self::BreakTy> { ... }
fn visit_const(
        &mut self,
        c: &'tcx Const<'tcx>
    ) -> ControlFlow<Self::BreakTy> { ... }
fn visit_predicate(
        &mut self,
        p: Predicate<'tcx>
    ) -> ControlFlow<Self::BreakTy> { ... } }

Associated Types

type BreakTy = ![src]

Loading content...

Provided methods

fn visit_binder<T: TypeFoldable<'tcx>>(
    &mut self,
    t: &Binder<'tcx, T>
) -> ControlFlow<Self::BreakTy>
[src]

fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy>[src]

fn visit_region(&mut self, r: Region<'tcx>) -> ControlFlow<Self::BreakTy>[src]

fn visit_const(&mut self, c: &'tcx Const<'tcx>) -> ControlFlow<Self::BreakTy>[src]

fn visit_predicate(&mut self, p: Predicate<'tcx>) -> ControlFlow<Self::BreakTy>[src]

Loading content...

Implementors

impl<'tcx> TypeVisitor<'tcx> for BoundVarsCollector<'tcx>[src]

type BreakTy = ()

impl<'tcx> TypeVisitor<'tcx> for HasEscapingVarsVisitor[src]

type BreakTy = FoundEscapingVars

impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor[src]

type BreakTy = FoundFlags

impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionsCollector[src]

impl<'tcx> TypeVisitor<'tcx> for ValidateBoundVars<'tcx>[src]

type BreakTy = ()

Loading content...