fn parse_flag_bit_weakness(input: &str) -> IResult<&str, SymbolWeakness> {
    let result = one_of("w ")(input)?;
    match result.1 {
        'w' => Ok((result.0, SymbolWeakness::Weak)),
        ' ' => Ok((result.0, SymbolWeakness::Strong)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
/// Parses the symbol table weak/strong symbol bit out of the bit flags sequence
Parses the symbol table weak/strong symbol bit out of the bit flags sequence
Parses the symbol table weak / strong symbol bit out of the bit flags sequence
fn parse_flag_bit_weakness(input: &str) -> IResult<&str, SymbolWeakness> {
    let result = one_of("w ")(input)?;
    match result.1 {
        'w' => Ok((result.0, SymbolWeakness::Weak)),
        ' ' => Ok((result.0, SymbolWeakness::Strong)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
fn parse_flag_bit_weakness ( input : & str ) -> IResult < & str , SymbolWeakness > { let result = one_of ( " " ) ( input ) ? ; match result . 1 { 'w' => Ok ( ( result . 0 , SymbolWeakness :: Weak ) ) , ' ' => Ok ( ( result . 0 , SymbolWeakness :: Strong ) ) , _ => Err ( nom :: Err :: Error ( nom :: error :: Error { input , code : ErrorKind :: Char , } ) ) , } }
Parses the symbol table weak/strong symbol bit out of the bit flags sequence
Parses the symbol table weak / strong symbol bit out of the bit flags sequence
input
&str