Struct cang_jie::stream::CangjieTokenStream [−][src]
pub struct CangjieTokenStream<'a> { /* fields omitted */ }
Methods
impl<'a> CangjieTokenStream<'a>
[src]
impl<'a> CangjieTokenStream<'a>
Trait Implementations
impl<'a> Debug for CangjieTokenStream<'a>
[src]
impl<'a> Debug for CangjieTokenStream<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> TokenStream for CangjieTokenStream<'a>
[src]
impl<'a> TokenStream for CangjieTokenStream<'a>
fn advance(&mut self) -> bool
[src]
fn advance(&mut self) -> bool
Advance to the next token Read more
fn token(&self) -> &Token
[src]
fn token(&self) -> &Token
Returns a reference to the current token.
fn token_mut(&mut self) -> &mut Token
[src]
fn token_mut(&mut self) -> &mut Token
Returns a mutable reference to the current token.
fn next(&mut self) -> Option<&Token>
[src]
fn next(&mut self) -> Option<&Token>
Helper to iterate over tokens. It simply combines a call to .advance()
and .token()
. Read more
fn process(&mut self, sink: &mut FnMut(&Token)) -> u32
[src]
fn process(&mut self, sink: &mut FnMut(&Token)) -> u32
Helper function to consume the entire TokenStream
and push the tokens to a sink function. Read more
Auto Trait Implementations
impl<'a> Send for CangjieTokenStream<'a>
impl<'a> Send for CangjieTokenStream<'a>
impl<'a> Sync for CangjieTokenStream<'a>
impl<'a> Sync for CangjieTokenStream<'a>