swc_html_visit

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

source§

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

Calls Visit::visit_opt_document_fragment 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 Option<Raw>

source§

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

Calls Visit::visit_opt_raw 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 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 DocumentFragment

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

source§

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

Calls Visit::visit_raw 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 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§