pub trait EasyPeek: Parse {
fn peek(lookahead1: &Lookahead1<'_>) -> bool;
fn peek_stream(stream: ParseStream<'_>) -> bool;
}
Expand description
Provides interface for peeking tokens before parsing. When implemented for complex structures, peeks first token.
Required Methods
fn peek(lookahead1: &Lookahead1<'_>) -> bool
fn peek(lookahead1: &Lookahead1<'_>) -> bool
Peek head token before parsing.
fn peek_stream(stream: ParseStream<'_>) -> bool
fn peek_stream(stream: ParseStream<'_>) -> bool
Peek head token before parsing.