Enum dprint_swc_ecma_ast_view::NodeOrToken[][src]

pub enum NodeOrToken<'a> {
    Node(Node<'a>),
    Token(&'a TokenAndSpan),
}

Variants

Node

Tuple Fields of Node

0: Node<'a>
Token

Tuple Fields of Token

0: &'a TokenAndSpan

Implementations

Trait Implementations

Get span of self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.