clippy_utils::visitors

Trait Visitable

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

A type which can be visited.

Required Methods§

source

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

Calls the corresponding visit_* function on the visitor.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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) -> V::Result

source§

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

source§

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

source§

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

source§

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

Implementors§