Struct object::read::elf::AttributesSection
source · pub struct AttributesSection<'data, Elf: FileHeader> {
endian: Elf::Endian,
version: u8,
data: Bytes<'data>,
}
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 AttributesSubsection
.
Returned by SectionHeader::attributes
and SectionHeader::gnu_attributes
.
Fields§
§endian: Elf::Endian
§version: u8
§data: Bytes<'data>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)