Trait VisitWith

Source
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§

Source

fn visit_with(&self, visitor: &mut V)

Calls a visitor method (visitor.fold_xxx) with self.

Source

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>
where V: ?Sized + Visit, T: VisitWith<V>,

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V, T> VisitWith<V> for Vec<T>
where V: ?Sized + Visit, [T]: VisitWith<V>,

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Option<Atom>

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_opt_atom with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Option<Modifiers>

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_opt_modifiers with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Alternative

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_alternative with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Atom

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_atom with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertion

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for BoundaryAssertionKind

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CapturingGroup

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Character

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_character with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClass

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContents

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassContentsKind

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscape

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassEscapeKind

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterClassRange

Source§

impl<V: ?Sized + Visit> VisitWith<V> for CharacterKind

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_character_kind with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for ClassString

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_class_string with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for ClassStringDisjunction

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Disjunction

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_disjunction with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Dot

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_dot with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for IgnoreGroup

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_ignore_group with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for IndexedReference

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertion

Source§

impl<V: ?Sized + Visit> VisitWith<V> for LookAroundAssertionKind

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Modifier

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_modifier with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Modifiers

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_modifiers with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for NamedReference

Source§

fn visit_with(&self, visitor: &mut V)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Pattern

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_pattern with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Quantifier

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_quantifier with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Span

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_span with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for Term

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_term with self.

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for UnicodePropertyEscape

Source§

impl<V: ?Sized + Visit> VisitWith<V> for [Alternative]

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_alternatives with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for [CharacterClassContents]

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_character_class_contentss with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for [Character]

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_characters with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for [ClassString]

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_class_strings with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Source§

impl<V: ?Sized + Visit> VisitWith<V> for [Term]

Source§

fn visit_with(&self, visitor: &mut V)

Calls Visit::visit_terms with self. (Extra impl)

Source§

fn visit_children_with(&self, visitor: &mut V)

Implementors§