Struct gimli::read::EhFrameHdr
source · [−]pub struct EhFrameHdr<R: Reader>(_);
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
sourceimpl<'input, Endian> EhFrameHdr<EndianSlice<'input, Endian>> where
Endian: Endianity,
impl<'input, Endian> EhFrameHdr<EndianSlice<'input, Endian>> where
Endian: Endianity,
sourceimpl<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
sourceimpl<R: Clone + Reader> Clone for EhFrameHdr<R>
impl<R: Clone + Reader> Clone for EhFrameHdr<R>
sourcefn clone(&self) -> EhFrameHdr<R>
fn clone(&self) -> EhFrameHdr<R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<R: Debug + Reader> Debug for EhFrameHdr<R>
impl<R: Debug + Reader> Debug for EhFrameHdr<R>
sourceimpl<R: Reader> From<R> for EhFrameHdr<R>
impl<R: Reader> From<R> for EhFrameHdr<R>
sourceimpl<R: PartialEq + Reader> PartialEq<EhFrameHdr<R>> for EhFrameHdr<R>
impl<R: PartialEq + Reader> PartialEq<EhFrameHdr<R>> for EhFrameHdr<R>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EhFrameHdr<R>) -> bool
fn ne(&self, other: &EhFrameHdr<R>) -> bool
This method tests for !=
.
sourceimpl<R: Reader> Section<R> for EhFrameHdr<R>
impl<R: Reader> Section<R> for EhFrameHdr<R>
sourcefn section_name() -> &'static str
fn section_name() -> &'static str
Returns the ELF section name for this type.
sourcefn 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. Read more
sourcefn load<F, E>(f: F) -> Result<Self, E> where
F: FnOnce(SectionId) -> Result<R, E>,
fn load<F, E>(f: F) -> Result<Self, E> where
F: FnOnce(SectionId) -> Result<R, E>,
Try to load the section using the given loader function.
sourcefn 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> StructuralEq for EhFrameHdr<R>
impl<R: Reader> StructuralPartialEq for EhFrameHdr<R>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more