Struct pdb::PdbInternalRva
source · [−]pub struct PdbInternalRva(pub u32);
Expand description
Tuple Fields
0: u32
Implementations
sourceimpl PdbInternalRva
impl PdbInternalRva
sourcepub fn checked_add(self, offset: u32) -> Option<Self>
pub fn checked_add(self, offset: u32) -> Option<Self>
Checked addition of an offset. Returns None
if overflow occurred.
sourcepub fn checked_sub(self, other: Self) -> Option<u32>
pub fn checked_sub(self, other: Self) -> Option<u32>
Checked computation of an offset between two addresses. Returns None
if other
is
larger.
sourcepub fn saturating_add(self, offset: u32) -> Self
pub fn saturating_add(self, offset: u32) -> Self
Saturating addition of an offset, clipped at the numeric bounds.
sourcepub fn saturating_sub(self, other: Self) -> u32
pub fn saturating_sub(self, other: Self) -> u32
Saturating computation of an offset between two addresses, clipped at zero.
sourcepub fn wrapping_add(self, offset: u32) -> Self
pub fn wrapping_add(self, offset: u32) -> Self
Wrapping (modular) addition of an offset.
sourcepub fn wrapping_sub(self, other: Self) -> u32
pub fn wrapping_sub(self, other: Self) -> u32
Wrapping (modular) computation of an offset between two addresses.
sourceimpl PdbInternalRva
impl PdbInternalRva
sourcepub fn to_rva(self, translator: &AddressMap<'_>) -> Option<Rva>
pub fn to_rva(self, translator: &AddressMap<'_>) -> Option<Rva>
Resolves an actual Relative Virtual Address in the executable’s address space.
sourcepub fn to_section_offset(
self,
translator: &AddressMap<'_>
) -> Option<SectionOffset>
pub fn to_section_offset(
self,
translator: &AddressMap<'_>
) -> Option<SectionOffset>
Resolves the section offset in the PE headers.
This is an offset into PE section headers of the executable. To retrieve section offsets
used in the PDB, use to_internal_offset
instead.
sourcepub fn to_internal_offset(
self,
translator: &AddressMap<'_>
) -> Option<PdbInternalSectionOffset>
pub fn to_internal_offset(
self,
translator: &AddressMap<'_>
) -> Option<PdbInternalSectionOffset>
Resolves the PDB internal section offset.
This is the offset value used in the PDB file. To index into the actual PE section headers,
use to_section_offset
instead.
Trait Implementations
sourceimpl Add<u32> for PdbInternalRva
impl Add<u32> for PdbInternalRva
type Output = PdbInternalRva
type Output = PdbInternalRva
The resulting type after applying the +
operator.
sourceimpl AddAssign<u32> for PdbInternalRva
impl AddAssign<u32> for PdbInternalRva
sourcefn add_assign(&mut self, offset: u32)
fn add_assign(&mut self, offset: u32)
Adds the given offset to this address.
sourceimpl Clone for PdbInternalRva
impl Clone for PdbInternalRva
sourcefn clone(&self) -> PdbInternalRva
fn clone(&self) -> PdbInternalRva
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PdbInternalRva
impl Debug for PdbInternalRva
sourceimpl Default for PdbInternalRva
impl Default for PdbInternalRva
sourcefn default() -> PdbInternalRva
fn default() -> PdbInternalRva
Returns the “default value” for a type. Read more
sourceimpl Display for PdbInternalRva
impl Display for PdbInternalRva
sourceimpl From<PdbInternalRva> for u32
impl From<PdbInternalRva> for u32
sourcefn from(string_ref: PdbInternalRva) -> Self
fn from(string_ref: PdbInternalRva) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for PdbInternalRva
impl From<u32> for PdbInternalRva
sourceimpl Hash for PdbInternalRva
impl Hash for PdbInternalRva
sourceimpl Ord for PdbInternalRva
impl Ord for PdbInternalRva
sourceimpl PartialEq<PdbInternalRva> for PdbInternalRva
impl PartialEq<PdbInternalRva> for PdbInternalRva
sourcefn eq(&self, other: &PdbInternalRva) -> bool
fn eq(&self, other: &PdbInternalRva) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PdbInternalRva) -> bool
fn ne(&self, other: &PdbInternalRva) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PdbInternalRva> for PdbInternalRva
impl PartialOrd<PdbInternalRva> for PdbInternalRva
sourcefn partial_cmp(&self, other: &PdbInternalRva) -> Option<Ordering>
fn partial_cmp(&self, other: &PdbInternalRva) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Sub<PdbInternalRva> for PdbInternalRva
impl Sub<PdbInternalRva> for PdbInternalRva
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for PdbInternalRva
impl<'a> TryFromCtx<'a, Endian, [u8]> for PdbInternalRva
impl Copy for PdbInternalRva
impl Eq for PdbInternalRva
impl StructuralEq for PdbInternalRva
impl StructuralPartialEq for PdbInternalRva
Auto Trait Implementations
impl RefUnwindSafe for PdbInternalRva
impl Send for PdbInternalRva
impl Sync for PdbInternalRva
impl Unpin for PdbInternalRva
impl UnwindSafe for PdbInternalRva
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more