pub trait VisitWith<V: ?Sized + Visit> {
// Required methods
fn visit_with(&self, visitor: &mut V);
fn visit_children_with(&self, visitor: &mut V);
}Expand description
A trait implemented for types that can be visited using a visitor.
Required Methods§
Sourcefn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls a visitor method (visitor.fold_xxx) with self.
Sourcefn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of self`` with visitor`.
Implementations on Foreign Types§
Source§impl<V, T> VisitWith<V> for Box<T>
impl<V, T> VisitWith<V> for Box<T>
fn visit_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V, T> VisitWith<V> for Vec<T>
impl<V, T> VisitWith<V> for Vec<T>
fn visit_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Atom>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Atom>
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_atom with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Option<Modifiers>
impl<V: ?Sized + Visit> VisitWith<V> for Option<Modifiers>
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_opt_modifiers with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Alternative
impl<V: ?Sized + Visit> VisitWith<V> for Alternative
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_alternative with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Atom
impl<V: ?Sized + Visit> VisitWith<V> for Atom
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_atom with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertion
impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertion
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_boundary_assertion with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertionKind
impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertionKind
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_boundary_assertion_kind with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CapturingGroup
impl<V: ?Sized + Visit> VisitWith<V> for CapturingGroup
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_capturing_group with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Character
impl<V: ?Sized + Visit> VisitWith<V> for Character
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClass
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClass
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContents
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContents
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_contents with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContentsKind
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContentsKind
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_contents_kind with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscape
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscape
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_escape with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscapeKind
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscapeKind
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_escape_kind with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassRange
impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassRange
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_range with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for CharacterKind
impl<V: ?Sized + Visit> VisitWith<V> for CharacterKind
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_kind with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for ClassString
impl<V: ?Sized + Visit> VisitWith<V> for ClassString
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_class_string with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for ClassStringDisjunction
impl<V: ?Sized + Visit> VisitWith<V> for ClassStringDisjunction
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_class_string_disjunction with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Disjunction
impl<V: ?Sized + Visit> VisitWith<V> for Disjunction
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_disjunction with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Dot
impl<V: ?Sized + Visit> VisitWith<V> for Dot
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_dot with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for IgnoreGroup
impl<V: ?Sized + Visit> VisitWith<V> for IgnoreGroup
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ignore_group with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for IndexedReference
impl<V: ?Sized + Visit> VisitWith<V> for IndexedReference
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_indexed_reference with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertion
impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertion
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_look_around_assertion with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertionKind
impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertionKind
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_look_around_assertion_kind with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Modifier
impl<V: ?Sized + Visit> VisitWith<V> for Modifier
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_modifier with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Modifiers
impl<V: ?Sized + Visit> VisitWith<V> for Modifiers
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_modifiers with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for NamedReference
impl<V: ?Sized + Visit> VisitWith<V> for NamedReference
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_named_reference with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Pattern
impl<V: ?Sized + Visit> VisitWith<V> for Pattern
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_pattern with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Quantifier
impl<V: ?Sized + Visit> VisitWith<V> for Quantifier
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_quantifier with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Span
impl<V: ?Sized + Visit> VisitWith<V> for Span
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_span with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for Term
impl<V: ?Sized + Visit> VisitWith<V> for Term
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_term with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for UnicodePropertyEscape
impl<V: ?Sized + Visit> VisitWith<V> for UnicodePropertyEscape
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_unicode_property_escape with self.
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for [Alternative]
impl<V: ?Sized + Visit> VisitWith<V> for [Alternative]
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_alternatives with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for [CharacterClassContents]
impl<V: ?Sized + Visit> VisitWith<V> for [CharacterClassContents]
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_character_class_contentss with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for [Character]
impl<V: ?Sized + Visit> VisitWith<V> for [Character]
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_characters with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for [ClassString]
impl<V: ?Sized + Visit> VisitWith<V> for [ClassString]
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_class_strings with self. (Extra impl)
fn visit_children_with(&self, visitor: &mut V)
Source§impl<V: ?Sized + Visit> VisitWith<V> for [Term]
impl<V: ?Sized + Visit> VisitWith<V> for [Term]
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_terms with self. (Extra impl)