Enum gimli::UnitSectionOffset [−][src]
pub enum UnitSectionOffset<T = usize> {
DebugInfoOffset(DebugInfoOffset<T>),
DebugTypesOffset(DebugTypesOffset<T>),
}
Expand description
An offset into the .debug_info
or .debug_types
sections.
Variants
DebugInfoOffset(DebugInfoOffset<T>)
Tuple Fields
0: DebugInfoOffset<T>
An offset into the .debug_info
section.
DebugTypesOffset(DebugTypesOffset<T>)
Tuple Fields
0: DebugTypesOffset<T>
An offset into the .debug_types
section.
Implementations
Returns the DebugInfoOffset
inside, or None
otherwise.
Returns the DebugTypesOffset
inside, or None
otherwise.
pub fn to_unit_offset<R>(&self, unit: &Unit<R>) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
pub fn to_unit_offset<R>(&self, unit: &Unit<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 section.
Returns None
if the offset is not within the unit entries.
Trait Implementations
Performs the conversion.
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 UnitSectionOffset<T> where
T: RefUnwindSafe,
impl<T> Send for UnitSectionOffset<T> where
T: Send,
impl<T> Sync for UnitSectionOffset<T> where
T: Sync,
impl<T> Unpin for UnitSectionOffset<T> where
T: Unpin,
impl<T> UnwindSafe for UnitSectionOffset<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more