pub struct File {
pub ehdr: FileHeader,
pub phdrs: Vec<ProgramHeader>,
pub sections: Vec<Section>,
}
Fields
ehdr: FileHeader
phdrs: Vec<ProgramHeader>
sections: Vec<Section>
Implementations
sourceimpl File
impl File
pub fn open_path<T: AsRef<Path>>(path: T) -> Result<File, ParseError>
pub fn open_stream<T: Read + Seek>(io_file: &mut T) -> Result<File, ParseError>
pub fn get_symbols(&self, section: &Section) -> Result<Vec<Symbol>, ParseError>
pub fn get_section<T: AsRef<str>>(&self, name: T) -> Option<&Section>
pub fn new() -> File
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more