pub trait VisitMut<N: ?Sized> {
// Provided method
fn visit_mut<D>(visitor: Visitor<'_, D, Self>, node: &mut N)
where D: DirectMut<Self, N> + ?Sized { ... }
}Expand description
The action to be performed when visiting a node of type N. This trait must be
implemented for all node types in the input, even if the visitor has no special handling
for that type.
Provided Methods§
Sourcefn visit_mut<D>(visitor: Visitor<'_, D, Self>, node: &mut N)
fn visit_mut<D>(visitor: Visitor<'_, D, Self>, node: &mut N)
Performs the visiting action. The default implementation simply calls
Visitor::visit_mut(visitor, node), which returns control to the DirectMut implementation
to continue to further sub-nodes. If you wish to skip sub-nodes, simply omit this
call from your implementation.
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.