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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CompletedMarker
impl Send for CompletedMarker
impl Sync for CompletedMarker
impl Unpin for CompletedMarker
impl UnwindSafe for CompletedMarker
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more