Struct elfloader::ProgramHeader64
source · [−]#[repr(C)]pub struct ProgramHeader64 {
pub type_: Type_,
pub flags: Flags,
pub offset: u64,
pub virtual_addr: u64,
pub physical_addr: u64,
pub file_size: u64,
pub mem_size: u64,
pub align: u64,
}
Fields
type_: Type_
flags: Flags
offset: u64
virtual_addr: u64
physical_addr: u64
file_size: u64
mem_size: u64
align: u64
Implementations
sourceimpl ProgramHeader64
impl ProgramHeader64
pub fn get_type(&self) -> Result<Type, &'static str>
pub fn get_data(
&self,
elf_file: &ElfFile<'a>
) -> Result<SegmentData<'a>, &'static str>
pub fn raw_data(&self, elf_file: &ElfFile<'a>) -> &'a [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Trait Implementations
sourceimpl Clone for ProgramHeader64
impl Clone for ProgramHeader64
sourcefn clone(&self) -> ProgramHeader64
fn clone(&self) -> ProgramHeader64
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProgramHeader64
impl Debug for ProgramHeader64
sourceimpl Default for ProgramHeader64
impl Default for ProgramHeader64
sourcefn default() -> ProgramHeader64
fn default() -> ProgramHeader64
Returns the “default value” for a type. Read more
sourceimpl Display for ProgramHeader64
impl Display for ProgramHeader64
impl Copy for ProgramHeader64
impl Pod for ProgramHeader64
Auto Trait Implementations
impl RefUnwindSafe for ProgramHeader64
impl Send for ProgramHeader64
impl Sync for ProgramHeader64
impl Unpin for ProgramHeader64
impl UnwindSafe for ProgramHeader64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more