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
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
pub fn token_iter(&mut self) -> TokenIter<'_, 'input, Self>ⓘNotable traits for TokenIter<'a, 'input, T>impl<'a, 'input: 'a, T: TokenStream<'input>> Iterator for TokenIter<'a, 'input, T> type Item = OwningToken;
pub fn token_iter(&mut self) -> TokenIter<'_, 'input, Self>ⓘNotable traits for TokenIter<'a, 'input, T>impl<'a, 'input: 'a, T: TokenStream<'input>> Iterator for TokenIter<'a, 'input, T> type Item = OwningToken;
impl<'a, 'input: 'a, T: TokenStream<'input>> Iterator for TokenIter<'a, 'input, T> type Item = OwningToken;
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
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 UnbufferedTokenStream<'input, T> where
T: TidAble<'input>,
Auto Trait Implementations
impl<'input, T> RefUnwindSafe for UnbufferedTokenStream<'input, T> where
T: RefUnwindSafe,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: RefUnwindSafe,
impl<'input, T> Send for UnbufferedTokenStream<'input, T> where
T: Send,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Send,
impl<'input, T> Sync for UnbufferedTokenStream<'input, T> where
T: Sync,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Sync,
impl<'input, T> Unpin for UnbufferedTokenStream<'input, T> where
T: Unpin,
<<T as TokenSource<'input>>::TF as TokenFactory<'input>>::Tok: Unpin,
impl<'input, T> UnwindSafe for UnbufferedTokenStream<'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