Function lip::chomp_if

source ·
pub fn chomp_if<'a, F, S: Clone + 'a>(
    predicate: F,
    expecting: &'a str
) -> impl Parser<'_, Output = (), State = S>where
    F: Fn(&'a str) -> bool + 'a,
Expand description

Chomp one grapheme if it passes the test.