rustc_middle::mir::visit

Trait MirVisitable

Source
pub trait MirVisitable<'tcx> {
    // Required method
    fn apply(&self, location: Location, visitor: &mut dyn Visitor<'tcx>);
}

Required Methods§

Source

fn apply(&self, location: Location, visitor: &mut dyn Visitor<'tcx>)

Implementations on Foreign Types§

Source§

impl<'tcx> MirVisitable<'tcx> for Option<Terminator<'tcx>>

Source§

fn apply(&self, location: Location, visitor: &mut dyn Visitor<'tcx>)

Implementors§

Source§

impl<'tcx> MirVisitable<'tcx> for Statement<'tcx>

Source§

impl<'tcx> MirVisitable<'tcx> for Terminator<'tcx>