Function parse_closure_conditional

Source
pub fn parse_closure_conditional(input: &str) -> IResult<&str, Closure>
Expand description

Parses a closure that falls back to conditional expression parsing.

This function is used when the input doesn’t match the standard closure syntax. It parses the input as a conditional expression and wraps it in a Closure::Primary variant.

§Arguments

  • input - The input string to parse

§Returns

Returns IResult<&str, Closure> containing the remaining unparsed input and the parsed closure.