Struct rslint_parser::LossyTreeSink[][src]

pub struct LossyTreeSink<'a> { /* fields omitted */ }
Expand description

Structure to convert events to a lossy syntax tree which does not preserve whitespace.

Implementations

Make a new tree sink but start the sink at a specific token, this is used for making completed markers into AST nodes for rules which need them.

Panics

Panics if the token start does not line up to a token’s start index or is out of bounds

Trait Implementations

Formats the value using the given formatter. Read more

Consume multiple tokens and glue them into one kind

Adds new token to the current branch.

Start new branch and make it current.

Finish current branch and restore previous branch as current. Read more

Emit errors

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

Unerase this erased pointer. Read more

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more

Turn this erasable pointer into an erased pointer. 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.