Struct gimli::read::EhFrameHdr
source · pub struct EhFrameHdr<R: Reader>(/* private fields */);
Expand description
EhFrameHdr
contains the information about the .eh_frame_hdr
section.
A pointer to the start of the .eh_frame
data, and optionally, a binary
search table of pointers to the .eh_frame
records that are found in this section.
Implementations§
source§impl<'input, Endian> EhFrameHdr<EndianSlice<'input, Endian>>where
Endian: Endianity,
impl<'input, Endian> EhFrameHdr<EndianSlice<'input, Endian>>where
Endian: Endianity,
source§impl<R: Reader> EhFrameHdr<R>
impl<R: Reader> EhFrameHdr<R>
sourcepub fn parse(
&self,
bases: &BaseAddresses,
address_size: u8,
) -> Result<ParsedEhFrameHdr<R>>
pub fn parse( &self, bases: &BaseAddresses, address_size: u8, ) -> Result<ParsedEhFrameHdr<R>>
Parses this EhFrameHdr
to a ParsedEhFrameHdr
.
Trait Implementations§
source§impl<R: Clone + Reader> Clone for EhFrameHdr<R>
impl<R: Clone + Reader> Clone for EhFrameHdr<R>
source§fn clone(&self) -> EhFrameHdr<R>
fn clone(&self) -> EhFrameHdr<R>
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 moresource§impl<R: Reader> From<R> for EhFrameHdr<R>
impl<R: Reader> From<R> for EhFrameHdr<R>
source§impl<R: PartialEq + Reader> PartialEq for EhFrameHdr<R>
impl<R: PartialEq + Reader> PartialEq for EhFrameHdr<R>
source§fn eq(&self, other: &EhFrameHdr<R>) -> bool
fn eq(&self, other: &EhFrameHdr<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<R: Reader> Section<R> for EhFrameHdr<R>
impl<R: Reader> Section<R> for EhFrameHdr<R>
source§fn section_name() -> &'static str
fn section_name() -> &'static str
Returns the ELF section name for this type.
source§fn dwo_section_name() -> Option<&'static str>
fn dwo_section_name() -> Option<&'static str>
Returns the ELF section name (if any) for this type when used in a dwo
file.
source§fn xcoff_section_name() -> Option<&'static str>
fn xcoff_section_name() -> Option<&'static str>
Returns the XCOFF section name (if any) for this type when used in a XCOFF
file.
source§fn load<F, E>(f: F) -> Result<Self, E>
fn load<F, E>(f: F) -> Result<Self, E>
Try to load the section using the given loader function.
source§fn dwp_range(&self, offset: u32, size: u32) -> Result<Self>where
R: Reader,
fn dwp_range(&self, offset: u32, size: u32) -> Result<Self>where
R: Reader,
Returns the subrange of the section that is the contribution of
a unit in a
.dwp
file.source§fn lookup_offset_id(&self, id: ReaderOffsetId) -> Option<(SectionId, R::Offset)>where
R: Reader,
fn lookup_offset_id(&self, id: ReaderOffsetId) -> Option<(SectionId, R::Offset)>where
R: Reader,
Returns the
Reader
for this section.impl<R: Copy + Reader> Copy for EhFrameHdr<R>
impl<R: Eq + Reader> Eq for EhFrameHdr<R>
impl<R: Reader> StructuralPartialEq for EhFrameHdr<R>
Auto Trait Implementations§
impl<R> Freeze for EhFrameHdr<R>where
R: Freeze,
impl<R> RefUnwindSafe for EhFrameHdr<R>where
R: RefUnwindSafe,
impl<R> Send for EhFrameHdr<R>where
R: Send,
impl<R> Sync for EhFrameHdr<R>where
R: Sync,
impl<R> Unpin for EhFrameHdr<R>where
R: Unpin,
impl<R> UnwindSafe for EhFrameHdr<R>where
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)