Struct rslint_parser::CompletedMarker[][src]

pub struct CompletedMarker { /* fields omitted */ }
Expand description

A structure signifying a completed node

Implementations

Change the kind of node this marker represents

Get the range of the marker

Get the underlying text of a marker

This method allows to create a new node which starts before the current one. That is, parser could start node A, then complete it, and then after parsing the whole A, decide that it should have started some node B before starting A. precede allows to do exactly that. See also docs about forward_parent in Event::Start.

Given completed events [START, FINISH] and its corresponding CompletedMarker(pos: 0, _). Append a new START events as [START, FINISH, NEWSTART], then mark NEWSTART as START’s parent with saving its relative distance to NEWSTART into forward_parent(=2 in this case);

Undo this completion and turns into a Marker

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.