Function try_parse

Source
pub fn try_parse<'a, R>(
    f: impl Fn() -> ParseResult<'a, R>,
) -> ParseResult<'a, R>
Expand description

Convenience function for use when generating code: calls the closure it is given as argument. Used to introduce new scope for name bindings.