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>
impl<'data, Elf: Clone + FileHeader> Clone for AttributesSection<'data, Elf>
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 moreAuto Trait Implementations§
impl<'data, Elf> Freeze for AttributesSection<'data, Elf>
impl<'data, Elf> RefUnwindSafe for AttributesSection<'data, Elf>
impl<'data, Elf> Send for AttributesSection<'data, Elf>
impl<'data, Elf> Sync for AttributesSection<'data, Elf>
impl<'data, Elf> Unpin for AttributesSection<'data, Elf>
impl<'data, Elf> UnwindSafe for AttributesSection<'data, Elf>
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