VisitMut

Trait VisitMut 

Source
pub trait VisitMut<'a, T: ?Sized>: Visitor {
    // Required method
    fn visit(&mut self, _: &'a mut T) -> ControlFlow<Self::Break>;

    // Provided method
    fn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>
       where Self: Sized { ... }
}
Expand description

A visitor that can mutably visit a type T.

Required Methods§

Source

fn visit(&mut self, _: &'a mut T) -> ControlFlow<Self::Break>

Visit this value.

Provided Methods§

Source

fn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>
where Self: Sized,

Convenience alias for method chaining.

Implementors§