if_not_empty

Function if_not_empty 

Source
pub fn if_not_empty<'a, R: IsEmptyable>(
    combinator: impl Fn(&'a str) -> ParseResult<'a, R>,
) -> impl Fn(&'a str) -> ParseResult<'a, R>
Expand description

Checks if the combinator result is not empty.