pub struct Program {
pub elf_header: ElfHeader,
pub program_headers: Option<Vec<ProgramHeader>>,
pub sections: Vec<SectionType>,
}Fields§
§elf_header: ElfHeader§program_headers: Option<Vec<ProgramHeader>>§sections: Vec<SectionType>Implementations§
Source§impl Program
impl Program
pub fn from_parse_result(_: ParseResult) -> Self
pub fn emit_bytecode(&self) -> Vec<u8> ⓘ
pub fn has_rodata(&self) -> bool
pub fn parse_rodata(&self) -> Vec<(String, usize, String)>
pub fn get_debug_map(&self) -> HashMap<u64, DebugInfo>
pub fn save_to_file(&self, input_path: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more