Trait swc_html_visit::FoldWith

source ·
pub trait FoldWith<V: ?Sized + Fold> {
    // Required methods
    fn fold_with(self, visitor: &mut V) -> Self;
    fn fold_children_with(self, visitor: &mut V) -> Self;
}
Expand description

A trait implemented for types that can be visited using a visitor.

Required Methods§

source

fn fold_with(self, visitor: &mut V) -> Self

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

source

fn fold_children_with(self, visitor: &mut V) -> Self

Visit children nodes of self`` with visitor`.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<V, T> FoldWith<V> for Box<T>
where V: ?Sized + Fold, T: FoldWith<V>,

source§

fn fold_with(self, visitor: &mut V) -> Self

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Option<Namespace>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_opt_namespace with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Option<Raw>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_opt_raw with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Option<Atom>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_opt_atom with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Option<DocumentFragment>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_opt_document_fragment with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Child

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_child with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for DocumentMode

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_document_mode with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Namespace

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_namespace with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Raw

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_raw with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Token

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_token with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Vec<Child>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_childs with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Vec<Attribute>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_attributes with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Vec<AttributeToken>

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_attribute_tokens with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Atom

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_atom with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Span

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_span with self. (Extra impl)

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Attribute

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_attribute with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Comment

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_comment with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Document

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_document with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for DocumentFragment

source§

fn fold_with(self, visitor: &mut V) -> Self

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for DocumentType

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_document_type with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Element

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_element with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for Text

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_text with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for AttributeToken

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_attribute_token with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

source§

impl<V: ?Sized + Fold> FoldWith<V> for TokenAndSpan

source§

fn fold_with(self, visitor: &mut V) -> Self

Calls Fold::fold_token_and_span with self.

source§

fn fold_children_with(self, visitor: &mut V) -> Self

Implementors§