Struct mer::program::ProgramHeader [−][src]
Fields
segment_type: u32
flags: u32
offset: u64
virtual_address: u64
physical_address: u64
file_size: u64
mem_size: u64
alignment: u64
Implementations
impl ProgramHeader
[src]
pub fn segment_type(&self) -> SegmentType
[src]
pub fn data<'a>(&self, elf: &'a Elf<'_>) -> &'a [u8]
[src]
pub fn is_executable(&self) -> bool
[src]
pub fn is_writable(&self) -> bool
[src]
pub fn is_readable(&self) -> bool
[src]
pub fn iterate_note_entries<'a>(&self, elf: &'a Elf<'_>) -> Option<NoteIter<'a>>
[src]
If this is a PT_NOTE
segment, iterate the entries. Returns None
if this isn't a note
segment.
Trait Implementations
impl Debug for ProgramHeader
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for ProgramHeader where
ProgramHeader: 'a,
[src]
ProgramHeader: 'a,
Auto Trait Implementations
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, 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>,