#[repr(C)]pub struct ELF64 {
pub ehdr: Ehdr64,
pub sections: Vec<Section64>,
pub segments: Vec<Segment64>,
}
Fields§
§ehdr: Ehdr64
§sections: Vec<Section64>
§segments: Vec<Segment64>
Implementations§
Source§impl ELF64
impl ELF64
Sourcepub fn add_section(&mut self, sct: Section64)
pub fn add_section(&mut self, sct: Section64)
add a section with creating new entry of section table and etc.
pub fn add_segment(&mut self, sgt: Segment64)
Sourcepub fn first_shidx_by<P>(&self, predicate: P) -> Option<usize>
pub fn first_shidx_by<P>(&self, predicate: P) -> Option<usize>
get section index if predicate returns true.
Sourcepub fn first_section_by<P>(&self, predicate: P) -> Option<&Section64>
pub fn first_section_by<P>(&self, predicate: P) -> Option<&Section64>
get a section if predicate returns true.
Sourcepub fn first_mut_section_by<P>(
&mut self,
predicate: P,
) -> Option<&mut Section64>
pub fn first_mut_section_by<P>( &mut self, predicate: P, ) -> Option<&mut Section64>
get a mutable section if predicate returns true.
pub fn to_le_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Ord for ELF64
impl Ord for ELF64
Source§impl PartialOrd for ELF64
impl PartialOrd for ELF64
impl Eq for ELF64
impl StructuralPartialEq for ELF64
Auto Trait Implementations§
impl Freeze for ELF64
impl RefUnwindSafe for ELF64
impl Send for ELF64
impl Sync for ELF64
impl Unpin for ELF64
impl UnwindSafe for ELF64
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