[−]Struct symbolic::debuginfo::dwarf::gimli::UnitOffset
An offset into the current compilation or type unit.
Implementations
impl<T> UnitOffset<T> where
T: ReaderOffset,
T: ReaderOffset,
pub fn to_unit_section_offset<R>(
&self,
unit: &Unit<R, <R as Reader>::Offset>
) -> UnitSectionOffset<T> where
R: Reader<Offset = T>,
&self,
unit: &Unit<R, <R as Reader>::Offset>
) -> 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.
impl<T> UnitOffset<T> where
T: ReaderOffset,
T: ReaderOffset,
pub fn to_debug_info_offset<R>(
&self,
unit: &CompilationUnitHeader<R, <R as Reader>::Offset>
) -> DebugInfoOffset<T> where
R: Reader<Offset = T>,
&self,
unit: &CompilationUnitHeader<R, <R as Reader>::Offset>
) -> 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 compilation unit.
pub fn to_debug_types_offset<R>(
&self,
unit: &TypeUnitHeader<R, <R as Reader>::Offset>
) -> DebugTypesOffset<T> where
R: Reader<Offset = T>,
&self,
unit: &TypeUnitHeader<R, <R as Reader>::Offset>
) -> 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 type unit.
Trait Implementations
impl<T> Clone for UnitOffset<T> where
T: Clone,
T: Clone,
pub fn clone(&self) -> UnitOffset<T>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for UnitOffset<T> where
T: Copy,
T: Copy,
impl<T> Debug for UnitOffset<T> where
T: Debug,
T: Debug,
impl<T> Eq for UnitOffset<T> where
T: Eq,
T: Eq,
impl<T> Hash for UnitOffset<T> where
T: Hash,
T: Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Ord for UnitOffset<T> where
T: Ord,
T: Ord,
pub fn cmp(&self, other: &UnitOffset<T>) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T> PartialEq<UnitOffset<T>> for UnitOffset<T> where
T: PartialEq<T>,
T: PartialEq<T>,
pub fn eq(&self, other: &UnitOffset<T>) -> bool
pub fn ne(&self, other: &UnitOffset<T>) -> bool
impl<T> PartialOrd<UnitOffset<T>> for UnitOffset<T> where
T: PartialOrd<T>,
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &UnitOffset<T>) -> Option<Ordering>
pub fn lt(&self, other: &UnitOffset<T>) -> bool
pub fn le(&self, other: &UnitOffset<T>) -> bool
pub fn gt(&self, other: &UnitOffset<T>) -> bool
pub fn ge(&self, other: &UnitOffset<T>) -> bool
impl<T> StructuralEq for UnitOffset<T>
impl<T> StructuralPartialEq for UnitOffset<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for UnitOffset<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for UnitOffset<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for UnitOffset<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for UnitOffset<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for UnitOffset<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RuleType for T where
T: Eq + Ord + Copy + Debug + Hash,
[src]
T: Eq + Ord + Copy + Debug + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,