Trait object::Object
[−]
[src]
pub trait Object<'a>: Sized { type Error; fn parse(input: &'a [u8]) -> Result<Self, Self::Error>; fn get_section(&self, section_name: &str) -> Option<&[u8]>; fn is_little_endian(&self) -> bool; }
An object file.
Associated Types
type Error
An associated error type for when parsing or some other operation fails.
Required Methods
fn parse(input: &'a [u8]) -> Result<Self, Self::Error>
Parse the raw object file data.
fn get_section(&self, section_name: &str) -> Option<&[u8]>
Get the contents of the section named section_name, if such
a section exists.
fn is_little_endian(&self) -> bool
Return true if the file is little endian, false if it is big endian.
Implementors
impl<'a> Object<'a> for Elf<'a>