[−]Enum symbolic::debuginfo::dwarf::gimli::UnitSectionOffset
An offset into the .debug_info
or .debug_types
sections.
Variants
DebugInfoOffset(DebugInfoOffset<T>)
An offset into the .debug_info
section.
DebugTypesOffset(DebugTypesOffset<T>)
An offset into the .debug_types
section.
Implementations
impl<T> UnitSectionOffset<T> where
T: ReaderOffset,
T: ReaderOffset,
pub fn to_unit_offset<R>(
&self,
unit: &Unit<R, <R as Reader>::Offset>
) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
&self,
unit: &Unit<R, <R as Reader>::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 section.
Returns None
if the offset is not within the unit entries.
Trait Implementations
impl<T> Clone for UnitSectionOffset<T> where
T: Clone,
T: Clone,
pub fn clone(&self) -> UnitSectionOffset<T>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for UnitSectionOffset<T> where
T: Copy,
T: Copy,
impl<T> Debug for UnitSectionOffset<T> where
T: Debug,
T: Debug,
impl<T> Eq for UnitSectionOffset<T> where
T: Eq,
T: Eq,
impl<T> Hash for UnitSectionOffset<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 UnitSectionOffset<T> where
T: Ord,
T: Ord,
pub fn cmp(&self, other: &UnitSectionOffset<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<UnitSectionOffset<T>> for UnitSectionOffset<T> where
T: PartialEq<T>,
T: PartialEq<T>,
pub fn eq(&self, other: &UnitSectionOffset<T>) -> bool
pub fn ne(&self, other: &UnitSectionOffset<T>) -> bool
impl<T> PartialOrd<UnitSectionOffset<T>> for UnitSectionOffset<T> where
T: PartialOrd<T>,
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &UnitSectionOffset<T>) -> Option<Ordering>
pub fn lt(&self, other: &UnitSectionOffset<T>) -> bool
pub fn le(&self, other: &UnitSectionOffset<T>) -> bool
pub fn gt(&self, other: &UnitSectionOffset<T>) -> bool
pub fn ge(&self, other: &UnitSectionOffset<T>) -> bool
impl<T> StructuralEq for UnitSectionOffset<T>
impl<T> StructuralPartialEq for UnitSectionOffset<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for UnitSectionOffset<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for UnitSectionOffset<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for UnitSectionOffset<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for UnitSectionOffset<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for UnitSectionOffset<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>,