pear::combinators

Function succeeds

Source
pub fn succeeds<I, P, O>(input: &mut Pear<I>, p: P) -> bool
where I: Input, P: FnOnce(&mut Pear<I>) -> Result<O, I>,
Expand description

Parses p, returning true if it succeeds and false if it fails. Discards the error message.