/// Parses if the symbol is a warning symbol or not
Parses if the symbol is a warning symbol or not
Parses if the symbol is a warning symbol or not
fn parse_flag_bit_warning(input: &str) -> IResult<&str, SymbolWarning> {
    let result = one_of("W ")(input)?;
    match result.1 {
        'W' => Ok((result.0, SymbolWarning::Warning)),
        ' ' => Ok((result.0, SymbolWarning::Regular)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
fn parse_flag_bit_warning ( input : & str ) -> IResult < & str , SymbolWarning > { let result = one_of ( " " ) ( input ) ? ; match result . 1 { 'W' => Ok ( ( result . 0 , SymbolWarning :: Warning ) ) , ' ' => Ok ( ( result . 0 , SymbolWarning :: Regular ) ) , _ => Err ( nom :: Err :: Error ( nom :: error :: Error { input , code : ErrorKind :: Char , } ) ) , } }
Parses if the symbol is a warning symbol or not
Parses if the symbol is a warning symbol or not
input
&str
<not_specific>