pelf 0.1.5

A library for parsing/generating/analyzing ELF
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ElfParserError<I> {
    /// the parser failed to parse.
    /// this variant holds the detailed error.
    #[error("failed to parse because {0}; internal(nom) error: {1}")]
    FailedToParse(String, nom::Err<nom::error::Error<I>>),
    /// the parser doesn't support the feature yet.
    /// this variant holds the detailed message.
    #[error("unsupported behavior; reason: {0}")]
    Unsupported(String),
}