Struct antlr_rust::token_stream::UnbufferedTokenStream[][src]

pub struct UnbufferedTokenStream<'input, T: TokenSource<'input>> { /* fields omitted */ }
Expand description

Token stream that keeps all data in internal Vec

Implementations

Creates iterator over this token stream

Creates iterator over tokens in this token stream

Creates token stream that keeps all tokens inside

Creates token stream that keeps only tokens required by mark

Trait Implementations

Formats the value using the given formatter. Read more

Consumes the current symbol in the stream. Advances this stream to the next element. Read more

Lookaheads (or loopbacks if i is negative) Read more

After this call subsequent calls to seek must succeed if seek index is greater than mark index Read more

Releases marker

Returns current position of the input stream Read more

Put stream back in state it was when it was in index position Read more

Returns the total number of symbols in the stream.

Returns name of the source this stream operates over if any

Token factory that created tokens in this stream

Lookahead for tokens, same as IntSteam::la but return reference to full token

Returns reference to token at index

Token source that produced data for tokens for this stream

Get combined text of tokens in start..=stop interval

Get combined text of all tokens in this stream

Get combined text of tokens in between a and b

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.

Returns text representation of current node type, rule name for context nodes and token text for terminal nodes Read more

Returns type id of the type of self Read more

Returns type id of this type

Returns true if type behind self is equal to the type of T.

Attempts to downcast self to T behind reference

Attempts to downcast self to T behind mutable reference

Attempts to downcast self to T behind Rc pointer

Attempts to downcast self to T behind Arc pointer

Attempts to downcast self to T behind Box pointer

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.