Function monch::map

source ·
pub fn map<'a, O, R>(
    combinator: impl Fn(&'a str) -> ParseResult<'a, O>,
    func: impl Fn(O) -> R
) -> impl Fn(&'a str) -> ParseResult<'a, R>
Expand description

Maps the success of a combinator by a function.