Struct antlr_rust::common_token_stream::CommonTokenStream [−][src]
pub struct CommonTokenStream<'input, T: TokenSource<'input>> { /* fields omitted */ }
Expand description
Default token stream that skips token that not correspond to current channel.
Implementations
Creates CommonTokenStream that produces tokens from TOKEN_DEFAULT_CHANNEL
Creates CommonTokenStream that produces tokens from channel
pub fn iter(&mut self) -> IterWrapper<'_, Self>ⓘNotable traits for IterWrapper<'a, T>impl<'a, T: IntStream> Iterator for IterWrapper<'a, T> type Item = isize;
pub fn iter(&mut self) -> IterWrapper<'_, Self>ⓘNotable traits for IterWrapper<'a, T>impl<'a, T: IntStream> Iterator for IterWrapper<'a, T> type Item = isize;
impl<'a, T: IntStream> Iterator for IterWrapper<'a, T> type Item = isize;
Creates iterator over this token stream
Trait Implementations
Consumes the current symbol in the stream. Advances this stream to the next element. Read more
After this call subsequent calls to seek must succeed if seek index is greater than mark index Read more
Put stream back in state it was when it was in index
position Read more
Returns name of the source this stream operates over if any
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
impl<'input, T: TokenSource<'input>> TidAble<'input> for CommonTokenStream<'input, T> where
T: TidAble<'input>,
Auto Trait Implementations
impl<'input, T> RefUnwindSafe for CommonTokenStream<'input, T> where
T: RefUnwindSafe,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: RefUnwindSafe,
impl<'input, T> Send for CommonTokenStream<'input, T> where
T: Send,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Send,
impl<'input, T> Sync for CommonTokenStream<'input, T> where
T: Sync,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Sync,
impl<'input, T> Unpin for CommonTokenStream<'input, T> where
T: Unpin,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Unpin,
impl<'input, T> UnwindSafe for CommonTokenStream<'input, T> where
T: UnwindSafe,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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