Struct gimli::DebugInfoOffset
[−]
[src]
pub struct DebugInfoOffset<T = usize>(pub T);
An offset into the .debug_info
section.
Methods
impl<T: ReaderOffset> DebugInfoOffset<T>
[src]
fn to_unit_offset<R>(
&self,
unit: &CompilationUnitHeader<R, R::Offset>
) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
[src]
&self,
unit: &CompilationUnitHeader<R, R::Offset>
) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
Convert an offset to be relative to the start of the given unit,
instead of relative to the start of the .debug_info section.
Returns None
if the offset is not within this unit entries.
Trait Implementations
impl<T: Debug> Debug for DebugInfoOffset<T>
[src]
impl<T: Clone> Clone for DebugInfoOffset<T>
[src]
fn clone(&self) -> DebugInfoOffset<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for DebugInfoOffset<T>
[src]
impl<T: PartialEq> PartialEq for DebugInfoOffset<T>
[src]
fn eq(&self, __arg_0: &DebugInfoOffset<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DebugInfoOffset<T>) -> bool
[src]
This method tests for !=
.