[−][src]Struct elf_utilities::file::ELF64
Fields
ehdr: Ehdr64sections: Vec<Section64>segments: Vec<Segment64>Implementations
impl ELF64[src]
pub fn add_section(&mut self, sct: Section64)[src]
add a section with creating new entry of section table and etc.
pub fn first_shidx_by<P>(&self, predicate: P) -> Option<usize> where
P: Fn(&Section64) -> bool, [src]
P: Fn(&Section64) -> bool,
get section index if predicate returns true.
pub fn first_section_by<P>(&self, predicate: P) -> Option<&Section64> where
P: Fn(&Section64) -> bool, [src]
P: Fn(&Section64) -> bool,
get a section if predicate returns true.
pub fn first_mut_section_by<P>(
&mut self,
predicate: P
) -> Option<&mut Section64> where
P: Fn(&Section64) -> bool, [src]
&mut self,
predicate: P
) -> Option<&mut Section64> where
P: Fn(&Section64) -> bool,
get a mutable section if predicate returns true.
pub fn finalize(&mut self)[src]
pub fn to_le_bytes(&self) -> Vec<u8>[src]
pub fn all_section_size(&self) -> u64[src]
Trait Implementations
impl Clone for ELF64[src]
impl Default for ELF64[src]
impl ELF for ELF64[src]
type Header = Ehdr64
type Section = Section64
type Segment = Segment64
fn new(elf_header: Ehdr64) -> Self[src]
fn sections_as_mut(&mut self) -> &mut Vec<Section64>[src]
fn update_sections(&mut self, sections: Vec<Section64>)[src]
fn update_segments(&mut self, segments: Vec<Segment64>)[src]
fn header(&self) -> Ehdr64[src]
impl Eq for ELF64[src]
impl Hash for ELF64[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for ELF64[src]
fn cmp(&self, other: &ELF64) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<ELF64> for ELF64[src]
impl PartialOrd<ELF64> for ELF64[src]
fn partial_cmp(&self, other: &ELF64) -> Option<Ordering>[src]
fn lt(&self, other: &ELF64) -> bool[src]
fn le(&self, other: &ELF64) -> bool[src]
fn gt(&self, other: &ELF64) -> bool[src]
fn ge(&self, other: &ELF64) -> bool[src]
impl StructuralEq for ELF64[src]
impl StructuralPartialEq for ELF64[src]
Auto Trait Implementations
impl RefUnwindSafe for ELF64
impl Send for ELF64
impl Sync for ELF64
impl Unpin for ELF64
impl UnwindSafe for ELF64
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,