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<Namespace>

Source§

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

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

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 Attribute

Source§

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

Calls Visit::visit_attribute with self.

Source§

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

Source§

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

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 CdataSection

Source§

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

Calls Visit::visit_cdata_section with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_child with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_comment with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_document with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_document_mode with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_document_type with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_element with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_namespace with self.

Source§

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

Source§

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

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 Text

Source§

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

Calls Visit::visit_text with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_token with self.

Source§

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

Source§

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

Source§

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

Calls Visit::visit_token_and_span with self.

Source§

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

Source§

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

Source§

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

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

Source§

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

Source§

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

Source§

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

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

Source§

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

Source§

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

Source§

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

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

Source§

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

Implementors§