[][src]Function lip::chomp_if

pub fn chomp_if<'a, F: 'a, S: Clone + 'a>(
    predicate: F,
    expecting: &'a str
) -> BoxedParser<'a, (), S> where
    F: Fn(&char) -> bool

Chomp one character if it passes the test.