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 AttributesSubsection
.
Returned by SectionHeader::attributes
and SectionHeader::gnu_attributes
.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'data, Elf: Debug + FileHeader> Debug for AttributesSection<'data, Elf>where
Elf::Endian: Debug,
impl<'data, Elf: Debug + FileHeader> Debug for AttributesSection<'data, Elf>where
Elf::Endian: Debug,
Auto Trait Implementations§
impl<'data, Elf> Freeze for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: Freeze,
impl<'data, Elf> RefUnwindSafe for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: RefUnwindSafe,
impl<'data, Elf> Send for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: Send,
impl<'data, Elf> Sync for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Unpin for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: Unpin,
impl<'data, Elf> UnwindSafe for AttributesSection<'data, Elf>where
<Elf as FileHeader>::Endian: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)