Trait spirt::visit::Visit

source ·
pub trait Visit {
    // Required method
    fn visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>);
}
Expand description

Trait implemented on “visitable” types (shallowly visitable, at least).

That is, an impl Visit for X will call the relevant Visitor method for X, typically named Visitor::visit_X or Visitor::visit_X_use.

Required Methods§

source

fn visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)

Implementations on Foreign Types§

source§

impl Visit for Vec<DiagMsgPart>

source§

fn visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)

Implementors§