pub struct DynamicTable<'data, Elf: FileHeader, R = &'data [u8]>where
R: ReadRef<'data>,{ /* private fields */ }Expand description
A table of dynamic entries in an ELF file.
Also includes the string table used for the string values.
Returned by SectionTable::dynamic_table.
Implementations§
Source§impl<'data, Elf: FileHeader, R: ReadRef<'data>> DynamicTable<'data, Elf, R>
impl<'data, Elf: FileHeader, R: ReadRef<'data>> DynamicTable<'data, Elf, R>
Sourcepub fn strings(&self) -> &StringTable<'data, R>
pub fn strings(&self) -> &StringTable<'data, R>
Return the string table used for the dynamic entries that have string values.
Sourcepub fn dynamics(&self) -> &'data [Elf::Dyn]
pub fn dynamics(&self) -> &'data [Elf::Dyn]
Return the dynamic entry slice.
This includes the terminating null entry and any following entries, which you will usually need to skip.
Sourcepub fn iter(&self) -> DynamicIterator<'data, Elf> ⓘ
pub fn iter(&self) -> DynamicIterator<'data, Elf> ⓘ
Iterate over the dynamic table entries.
Excludes the terminating null entry, and any following entries.
Trait Implementations§
Source§impl<'data, Elf: Clone + FileHeader, R> Clone for DynamicTable<'data, Elf, R>
impl<'data, Elf: Clone + FileHeader, R> Clone for DynamicTable<'data, Elf, R>
Source§fn clone(&self) -> DynamicTable<'data, Elf, R>
fn clone(&self) -> DynamicTable<'data, Elf, R>
Returns a duplicate 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 moreSource§impl<'data, Elf: Debug + FileHeader, R> Debug for DynamicTable<'data, Elf, R>
impl<'data, Elf: Debug + FileHeader, R> Debug for DynamicTable<'data, Elf, R>
Source§impl<'data, Elf: FileHeader, R: ReadRef<'data>> Default for DynamicTable<'data, Elf, R>
impl<'data, Elf: FileHeader, R: ReadRef<'data>> Default for DynamicTable<'data, Elf, R>
Source§impl<'a, 'data, Elf: FileHeader, R: ReadRef<'data>> IntoIterator for &'a DynamicTable<'data, Elf, R>
impl<'a, 'data, Elf: FileHeader, R: ReadRef<'data>> IntoIterator for &'a DynamicTable<'data, Elf, R>
impl<'data, Elf: Copy + FileHeader, R> Copy for DynamicTable<'data, Elf, R>
Auto Trait Implementations§
impl<'data, Elf, R> Freeze for DynamicTable<'data, Elf, R>
impl<'data, Elf, R> RefUnwindSafe for DynamicTable<'data, Elf, R>where
<Elf as FileHeader>::Endian: RefUnwindSafe,
<Elf as FileHeader>::Dyn: RefUnwindSafe,
R: RefUnwindSafe,
impl<'data, Elf, R> Send for DynamicTable<'data, Elf, R>
impl<'data, Elf, R> Sync for DynamicTable<'data, Elf, R>
impl<'data, Elf, R> Unpin for DynamicTable<'data, Elf, R>
impl<'data, Elf, R> UnsafeUnpin for DynamicTable<'data, Elf, R>
impl<'data, Elf, R> UnwindSafe for DynamicTable<'data, Elf, R>where
<Elf as FileHeader>::Endian: UnwindSafe,
<Elf as FileHeader>::Dyn: RefUnwindSafe,
R: UnwindSafe,
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