Trait lightningcss::visitor::Visit
source · pub trait Visit<'i, T: Visit<'i, T, V>, V: Visitor<'i, T>> {
const CHILD_TYPES: VisitTypes;
fn visit_children(&mut self, visitor: &mut V);
fn visit(&mut self, visitor: &mut V) { ... }
}
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§
sourcefn visit_children(&mut self, visitor: &mut V)
fn visit_children(&mut self, visitor: &mut V)
Visit the children of this value.