Function pear::combinators::succeeds
source · pub fn succeeds<I, P, O>(input: &mut Pear<I>, p: P) -> boolwhere
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.