Trait pmhelp::exts::ParseBufferExt [−][src]
pub trait ParseBufferExt { fn peek_and_consume<T, P>(&self, token: T) -> bool
where
P: Parse,
T: Peek<Token = P>; }
Required methods
fn peek_and_consume<T, P>(&self, token: T) -> bool where
P: Parse,
T: Peek<Token = P>,
fn peek_and_consume<T, P>(&self, token: T) -> bool where
P: Parse,
T: Peek<Token = P>,
Peeks to see if a token is present. If it is, then it consumes the token and returns true.