Function pear::combinators::surrounded
source · pub fn surrounded<I, O, F, P>(input: &mut Pear<I>, p: P, f: F) -> Result<O, I>where
I: Input,
F: FnMut(&I::Token) -> bool,
P: FnMut(&mut Pear<I>) -> Result<O, I>,Expand description
Skips all tokens that match f before and after a p, returning p.