fn list_of_values(input: &str) -> IResult<&str, Vec<Value<'_>>> {
    delimited(
        spaced(char('[')),
        alt((
            comma_separated_value!(number, Value::Number),
            comma_separated_value!(string_literal, Value::StringLiteral),
            comma_separated_value!(severity_sym, Value::Severity),
        )),
        spaced(char(']')),
    )(input)
}
/// Parses a list of values. Each list can only contain values of the same type:
/// - String literal
/// - Number
/// - Severity
Parses a list of values. Each list can only contain values of the same type:
String literal
Number
Severity
Parses a list of values . Each list can only contain values of the same type : String literal Number Severity
fn list_of_values(input: &str) -> IResult<&str, Vec<Value<'_>>> {
    delimited(
        spaced(char('[')),
        alt((
            comma_separated_value!(number, Value::Number),
            comma_separated_value!(string_literal, Value::StringLiteral),
            comma_separated_value!(severity_sym, Value::Severity),
        )),
        spaced(char(']')),
    )(input)
}
fn list_of_values ( input : & str ) -> IResult < & str , Vec < Value < ' _ > > > { delimited ( spaced ( char ( '[' ) ) , alt ( ( comma_separated_value ! ( number Value Number ) , comma_separated_value ! ( string_literal Value StringLiteral ) , comma_separated_value ! ( severity_sym Value Severity ) , ) ) , spaced ( char ( ']' ) ) , ) ( input ) }
Parses a list of values.
Parses a list of values .
input
&str
input
&str