pub trait Visitable<'tcx> {
    // Required method
    fn visit<V: Visitor<'tcx>>(self, visitor: &mut V);
}
Expand description

A type which can be visited.

Required Methods§

source

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

Calls the corresponding visit_* function on the visitor.

Implementations on Foreign Types§

source§

impl<'tcx> Visitable<'tcx> for &'tcx Stmt<'tcx>

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx> Visitable<'tcx> for &'tcx Block<'tcx>

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx> Visitable<'tcx> for &'tcx Expr<'tcx>

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx, A, B> Visitable<'tcx> for (A, B)where A: Visitable<'tcx>, B: Visitable<'tcx>,

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx, T> Visitable<'tcx> for &'tcx [T]where &'tcx T: Visitable<'tcx>,

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx, T> Visitable<'tcx> for Option<T>where T: Visitable<'tcx>,

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx> Visitable<'tcx> for &'tcx Body<'tcx>

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

source§

impl<'tcx> Visitable<'tcx> for &'tcx Arm<'tcx>

source§

fn visit<V: Visitor<'tcx>>(self, visitor: &mut V)

Implementors§