[−][src]Function parze::try_map
pub fn try_map<'b, 'a, T: Clone + 'a, O: 'a, E: ParseError<T> + 'a>(
f: impl Fn(T) -> Result<O, E> + Clone + 'a
) -> Parser<'a, T, O, E, impl ParseFn<T, O, E> + Captures<'b> + 'a> where
'a: 'b,
'b: 'a,
A parser that accepts one symbol provided it passes the given test, mapping it to another symbol in the process.
This function is extremely powerful, and is actually a superset of several other parser functions defined in this crate. However, this power also makes it fairly awkward to use. You might be better served by another function.