Function monch::take_while
source · pub fn take_while<'a>(
cond: impl Fn(char) -> bool
) -> impl Fn(&'a str) -> ParseResult<'a, &'a str>Expand description
Takes a substring while the condition is true.
pub fn take_while<'a>(
cond: impl Fn(char) -> bool
) -> impl Fn(&'a str) -> ParseResult<'a, &'a str>Takes a substring while the condition is true.