Trait lightningcss::visitor::Visit
source · pub trait Visit<'i, T: Visit<'i, T, V>, V: 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.