stable_mir::visitor

Trait Visitor

Source
pub trait Visitor: Sized {
    type Break;

    // Provided methods
    fn visit_ty(&mut self, ty: &Ty) -> ControlFlow<Self::Break> { ... }
    fn visit_const(&mut self, c: &TyConst) -> 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: &TyConst) -> ControlFlow<Self::Break>

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§