Enum xmas_elf::sections::SectionHeader
source · pub enum SectionHeader<'a> {
Sh32(&'a SectionHeader_<P32>),
Sh64(&'a SectionHeader_<P64>),
}
Variants§
Sh32(&'a SectionHeader_<P32>)
Sh64(&'a SectionHeader_<P64>)
Implementations§
source§impl<'a> SectionHeader<'a>
impl<'a> SectionHeader<'a>
pub fn get_name(&self, elf_file: &ElfFile<'a>) -> Result<&'a str, &'static str>
pub fn get_type(&self) -> Result<ShType, &'static str>
pub fn get_data( &self, elf_file: &ElfFile<'a> ) -> Result<SectionData<'a>, &'static str>
pub fn raw_data(&self, elf_file: &ElfFile<'a>) -> &'a [u8]
pub fn flags(&self) -> u64
pub fn name(&self) -> u32
pub fn address(&self) -> u64
pub fn offset(&self) -> u64
pub fn size(&self) -> u64
pub fn type_(&self) -> ShType_
pub fn link(&self) -> u32
pub fn info(&self) -> u32
pub fn entry_size(&self) -> u32
pub fn align(&self) -> u64
Trait Implementations§
source§impl<'a> Clone for SectionHeader<'a>
impl<'a> Clone for SectionHeader<'a>
source§fn clone(&self) -> SectionHeader<'a>
fn clone(&self) -> SectionHeader<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for SectionHeader<'a>
impl<'a> Debug for SectionHeader<'a>
source§impl<'a> Display for SectionHeader<'a>
impl<'a> Display for SectionHeader<'a>
impl<'a> Copy for SectionHeader<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SectionHeader<'a>
impl<'a> Send for SectionHeader<'a>
impl<'a> Sync for SectionHeader<'a>
impl<'a> Unpin for SectionHeader<'a>
impl<'a> UnwindSafe for SectionHeader<'a>
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