/// 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<'a, E>(input: &'a str) -> IResult<&'a str, Vec<Value<'a>>, E>
where
    E: NomParseError<&'a str>,
{
    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 < ' a , E > ( input : & ' a str ) -> IResult < & ' a str , Vec < Value < ' a > > , E > where E : NomParseError < & ' a str > , { 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
&'a str