Struct gimli::read::UnitOffset [−][src]
pub struct UnitOffset<T = usize>(pub T);
Expand description
An offset into the current compilation or type unit.
Tuple Fields
0: T
Implementations
pub fn to_unit_section_offset<R>(&self, unit: &Unit<R>) -> UnitSectionOffset<T> where
R: Reader<Offset = T>,
pub fn to_unit_section_offset<R>(&self, unit: &Unit<R>) -> UnitSectionOffset<T> where
R: Reader<Offset = T>,
Convert an offset to be relative to the start of the .debug_info section, instead of relative to the start of the given compilation unit.
Does not check that the offset is valid.
pub fn to_debug_info_offset<R>(
&self,
unit: &UnitHeader<R>
) -> Option<DebugInfoOffset<T>> where
R: Reader<Offset = T>,
pub fn to_debug_info_offset<R>(
&self,
unit: &UnitHeader<R>
) -> Option<DebugInfoOffset<T>> where
R: Reader<Offset = T>,
Convert an offset to be relative to the start of the .debug_info section, instead of relative to the start of the given unit. Returns None if the provided unit lives in the .debug_types section.
pub fn to_debug_types_offset<R>(
&self,
unit: &UnitHeader<R>
) -> Option<DebugTypesOffset<T>> where
R: Reader<Offset = T>,
pub fn to_debug_types_offset<R>(
&self,
unit: &UnitHeader<R>
) -> Option<DebugTypesOffset<T>> where
R: Reader<Offset = T>,
Convert an offset to be relative to the start of the .debug_types section, instead of relative to the start of the given unit. Returns None if the provided unit lives in the .debug_info section.
Trait Implementations
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 UnitOffset<T> where
T: RefUnwindSafe,
impl<T> Send for UnitOffset<T> where
T: Send,
impl<T> Sync for UnitOffset<T> where
T: Sync,
impl<T> Unpin for UnitOffset<T> where
T: Unpin,
impl<T> UnwindSafe for UnitOffset<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more