Struct gimli::DebugTypesOffset [−][src]
pub struct DebugTypesOffset<T = usize>(pub T);
An offset into the .debug_types
section.
Methods
impl<T: ReaderOffset> DebugTypesOffset<T>
[src]
impl<T: ReaderOffset> DebugTypesOffset<T>
pub fn to_unit_offset<R>(
&self,
unit: &TypeUnitHeader<R, R::Offset>
) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
[src]
pub fn to_unit_offset<R>(
&self,
unit: &TypeUnitHeader<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_types section.
Returns None
if the offset is not within the unit entries.
Trait Implementations
impl<T: Debug> Debug for DebugTypesOffset<T>
[src]
impl<T: Debug> Debug for DebugTypesOffset<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for DebugTypesOffset<T>
[src]
impl<T: Clone> Clone for DebugTypesOffset<T>
fn clone(&self) -> DebugTypesOffset<T>
[src]
fn clone(&self) -> DebugTypesOffset<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for DebugTypesOffset<T>
[src]
impl<T: Copy> Copy for DebugTypesOffset<T>
impl<T: PartialEq> PartialEq for DebugTypesOffset<T>
[src]
impl<T: PartialEq> PartialEq for DebugTypesOffset<T>
fn eq(&self, other: &DebugTypesOffset<T>) -> bool
[src]
fn eq(&self, other: &DebugTypesOffset<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DebugTypesOffset<T>) -> bool
[src]
fn ne(&self, other: &DebugTypesOffset<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for DebugTypesOffset<T>
[src]
impl<T: Eq> Eq for DebugTypesOffset<T>
impl<T: Hash> Hash for DebugTypesOffset<T>
[src]
impl<T: Hash> Hash for DebugTypesOffset<T>
Auto Trait Implementations
impl<T> Send for DebugTypesOffset<T> where
T: Send,
impl<T> Send for DebugTypesOffset<T> where
T: Send,
impl<T> Sync for DebugTypesOffset<T> where
T: Sync,
impl<T> Sync for DebugTypesOffset<T> where
T: Sync,