[−][src]Enum 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.
Methods
impl<T: ReaderOffset> UnitSectionOffset<T>
[src]
pub fn to_unit_offset<R>(&self, unit: &Unit<R>) -> Option<UnitOffset<T>> where
R: Reader<Offset = T>,
[src]
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: PartialEq> PartialEq<UnitSectionOffset<T>> for UnitSectionOffset<T>
[src]
fn eq(&self, other: &UnitSectionOffset<T>) -> bool
[src]
fn ne(&self, other: &UnitSectionOffset<T>) -> bool
[src]
impl<T: Eq> Eq for UnitSectionOffset<T>
[src]
impl<T: Ord> Ord for UnitSectionOffset<T>
[src]
fn cmp(&self, other: &UnitSectionOffset<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more
impl<T: PartialOrd> PartialOrd<UnitSectionOffset<T>> for UnitSectionOffset<T>
[src]
fn partial_cmp(&self, other: &UnitSectionOffset<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &UnitSectionOffset<T>) -> bool
[src]
fn le(&self, other: &UnitSectionOffset<T>) -> bool
[src]
fn gt(&self, other: &UnitSectionOffset<T>) -> bool
[src]
fn ge(&self, other: &UnitSectionOffset<T>) -> bool
[src]
impl<T: Clone> Clone for UnitSectionOffset<T>
[src]
fn clone(&self) -> UnitSectionOffset<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for UnitSectionOffset<T>
[src]
impl<T: Debug> Debug for UnitSectionOffset<T>
[src]
impl<T: Hash> Hash for UnitSectionOffset<T>
[src]
Auto Trait Implementations
impl<T> Send for UnitSectionOffset<T> where
T: Send,
T: Send,
impl<T> Sync for UnitSectionOffset<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,