Struct object::read::elf::AttributesSection
source · pub struct AttributesSection<'data, Elf: FileHeader> { /* private fields */ }
Expand description
An ELF attributes section.
This may be a GNU attributes section, or an architecture specific attributes section.
An attributes section contains a series of subsections.
Implementations§
source§impl<'data, Elf: FileHeader> AttributesSection<'data, Elf>
impl<'data, Elf: FileHeader> AttributesSection<'data, Elf>
sourcepub fn new(endian: Elf::Endian, data: &'data [u8]) -> Result<Self>
pub fn new(endian: Elf::Endian, data: &'data [u8]) -> Result<Self>
Parse an ELF attributes section given the section data.
sourcepub fn subsections(&self) -> Result<AttributesSubsectionIterator<'data, Elf>>
pub fn subsections(&self) -> Result<AttributesSubsectionIterator<'data, Elf>>
Return an iterator over the subsections.
Trait Implementations§
source§impl<'data, Elf: Clone + FileHeader> Clone for AttributesSection<'data, Elf>where
Elf::Endian: Clone,
impl<'data, Elf: Clone + FileHeader> Clone for AttributesSection<'data, Elf>where
Elf::Endian: Clone,
source§fn clone(&self) -> AttributesSection<'data, Elf>
fn clone(&self) -> AttributesSection<'data, Elf>
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 more