Function pear::combinators::ok
source · pub fn ok<I, P, O>(input: &mut Pear<I>, p: P) -> Option<O>where
I: Input,
P: FnOnce(&mut Pear<I>) -> Result<O, I>,Expand description
Parses p, returning Some if it succeeds and None if it fails. Discards
the error message.