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

Peek head token before parsing.

Peek head token before parsing.

Implementors