Enum elfloader::ProgramHeader
source · [−]pub enum ProgramHeader<'a> {
Ph32(&'a ProgramHeader32),
Ph64(&'a ProgramHeader64),
}
Variants
Ph32(&'a ProgramHeader32)
Ph64(&'a ProgramHeader64)
Implementations
sourceimpl<'a> ProgramHeader<'a>
impl<'a> ProgramHeader<'a>
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 align(&self) -> u64
pub fn file_size(&self) -> u64
pub fn mem_size(&self) -> u64
pub fn offset(&self) -> u64
pub fn physical_addr(&self) -> u64
pub fn virtual_addr(&self) -> u64
pub fn flags(&self) -> Flags
Trait Implementations
sourceimpl<'a> Clone for ProgramHeader<'a>
impl<'a> Clone for ProgramHeader<'a>
sourcefn clone(&self) -> ProgramHeader<'a>
fn clone(&self) -> ProgramHeader<'a>
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<'a> Debug for ProgramHeader<'a>
impl<'a> Debug for ProgramHeader<'a>
sourceimpl<'a> Display for ProgramHeader<'a>
impl<'a> Display for ProgramHeader<'a>
impl<'a> Copy for ProgramHeader<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProgramHeader<'a>
impl<'a> Send for ProgramHeader<'a>
impl<'a> Sync for ProgramHeader<'a>
impl<'a> Unpin for ProgramHeader<'a>
impl<'a> UnwindSafe for ProgramHeader<'a>
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