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§
Sourcefn visit(&mut self, _: &'a mut T) -> ControlFlow<Self::Break>
fn visit(&mut self, _: &'a mut T) -> ControlFlow<Self::Break>
Visit this value.
Provided Methods§
Sourcefn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
fn visit_by_val(self, x: &'a mut T) -> ControlFlow<Self::Break, Self>where
Self: Sized,
Convenience alias for method chaining.