pub trait Visit<'i, T: Visit<'i, T, V>, V: ?Sized + Visitor<'i, T>> {
const CHILD_TYPES: VisitTypes;
// Required method
fn visit_children(&mut self, visitor: &mut V) -> Result<(), V::Error>;
// Provided method
fn visit(&mut self, visitor: &mut V) -> Result<(), V::Error> { ... }
}
Available on crate feature
visitor
only.Expand description
A trait for values that can be visited by a Visitor.
Required Associated Constants§
Sourceconst CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
The types of values contained within this value and its children. This is used to skip branches that don’t have any values requested by the Visitor.
Required Methods§
Provided Methods§
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.