pub fn expect<F>(f: F, token: &'static str) -> Parser<()> where
    F: 'static + Fn(&str) -> bool
Expand description

Call a function on the input, and if it returns false, throw an error.