pub trait Visitor: Sized {
    type Break;

    // Provided methods
    fn visit_ty(&mut self, ty: &Ty) -> ControlFlow<Self::Break> { ... }
    fn visit_const(&mut self, c: &Const) -> ControlFlow<Self::Break> { ... }
    fn visit_reg(&mut self, reg: &Region) -> ControlFlow<Self::Break> { ... }
}

Required Associated Types§

Provided Methods§

source

fn visit_ty(&mut self, ty: &Ty) -> ControlFlow<Self::Break>

source

fn visit_const(&mut self, c: &Const) -> ControlFlow<Self::Break>

source

fn visit_reg(&mut self, reg: &Region) -> ControlFlow<Self::Break>

Object Safety§

This trait is not object safe.

Implementors§