Struct gimli::DebugInfoOffset [−][src]
pub struct DebugInfoOffset<T = usize>(pub T);
Expand description
An offset into the .debug_info
section.
Tuple Fields
0: T
Implementations
pub fn to_unit_offset<R>(&self, unit: &UnitHeader<R>) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
pub fn to_unit_offset<R>(&self, unit: &UnitHeader<R>) -> 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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for DebugInfoOffset<T> where
T: RefUnwindSafe,
impl<T> Send for DebugInfoOffset<T> where
T: Send,
impl<T> Sync for DebugInfoOffset<T> where
T: Sync,
impl<T> Unpin for DebugInfoOffset<T> where
T: Unpin,
impl<T> UnwindSafe for DebugInfoOffset<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more