fn parse_flag_bit_type(input: &str) -> IResult<&str, SymbolType> {
    let result = one_of("FfO ")(input)?;
    match result.1 {
        'F' => Ok((result.0, SymbolType::Function)),
        'f' => Ok((result.0, SymbolType::File)),
        'O' => Ok((result.0, SymbolType::Object)),
        ' ' => Ok((result.0, SymbolType::Regular)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
/// Parses the symbol type from the flag bits
Parses the symbol type from the flag bits
Parses the symbol type from the flag bits
fn parse_flag_bit_type(input: &str) -> IResult<&str, SymbolType> {
    let result = one_of("FfO ")(input)?;
    match result.1 {
        'F' => Ok((result.0, SymbolType::Function)),
        'f' => Ok((result.0, SymbolType::File)),
        'O' => Ok((result.0, SymbolType::Object)),
        ' ' => Ok((result.0, SymbolType::Regular)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
fn parse_flag_bit_type ( input : & str ) -> IResult < & str , SymbolType > { let result = one_of ( " " ) ( input ) ? ; match result . 1 { 'F' => Ok ( ( result . 0 , SymbolType :: Function ) ) , 'f' => Ok ( ( result . 0 , SymbolType :: File ) ) , 'O' => Ok ( ( result . 0 , SymbolType :: Object ) ) , ' ' => Ok ( ( result . 0 , SymbolType :: Regular ) ) , _ => Err ( nom :: Err :: Error ( nom :: error :: Error { input , code : ErrorKind :: Char , } ) ) , } }
Parses the symbol type from the flag bits
Parses the symbol type from the flag bits
input
&str