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 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. Read more
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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more