[][src]Enum xmas_elf::sections::SectionHeader

pub enum SectionHeader<'a> {
    Sh32(&'a SectionHeader_<P32>),
    Sh64(&'a SectionHeader_<P64>),
}

Variants

Sh32(&'a SectionHeader_<P32>)Sh64(&'a SectionHeader_<P64>)

Methods

impl<'a> SectionHeader<'a>[src]

pub fn get_name(&self, elf_file: &ElfFile<'a>) -> Result<&'a str, &'static str>[src]

pub fn get_type(&self) -> Result<ShType, &'static str>[src]

pub fn get_data(
    &self,
    elf_file: &ElfFile<'a>
) -> Result<SectionData<'a>, &'static str>
[src]

pub fn raw_data(&self, elf_file: &ElfFile<'a>) -> &'a [u8][src]

pub fn flags(&self) -> u64[src]

pub fn name(&self) -> u32[src]

pub fn address(&self) -> u64[src]

pub fn offset(&self) -> u64[src]

pub fn size(&self) -> u64[src]

pub fn type_(&self) -> ShType_[src]

pub fn info(&self) -> u32[src]

Trait Implementations

impl<'a> Copy for SectionHeader<'a>[src]

impl<'a> Debug for SectionHeader<'a>[src]

impl<'a> Display for SectionHeader<'a>[src]

impl<'a> Clone for SectionHeader<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for SectionHeader<'a>

impl<'a> Sync for SectionHeader<'a>

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]