Struct object::pe::ImageRelocation
source · #[repr(C)]pub struct ImageRelocation {
pub virtual_address: U32Bytes<LittleEndian>,
pub symbol_table_index: U32Bytes<LittleEndian>,
pub typ: U16Bytes<LittleEndian>,
}
Fields§
§virtual_address: U32Bytes<LittleEndian>
Also RelocCount
when IMAGE_SCN_LNK_NRELOC_OVFL is set
symbol_table_index: U32Bytes<LittleEndian>
§typ: U16Bytes<LittleEndian>
Implementations§
source§impl ImageRelocation
impl ImageRelocation
sourcepub fn symbol(&self) -> SymbolIndex
pub fn symbol(&self) -> SymbolIndex
Get the index of the symbol referenced by this relocation.
Trait Implementations§
source§impl Clone for ImageRelocation
impl Clone for ImageRelocation
source§fn clone(&self) -> ImageRelocation
fn clone(&self) -> ImageRelocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageRelocation
impl Debug for ImageRelocation
impl Copy for ImageRelocation
impl Pod for ImageRelocation
Auto Trait Implementations§
impl Freeze for ImageRelocation
impl RefUnwindSafe for ImageRelocation
impl Send for ImageRelocation
impl Sync for ImageRelocation
impl Unpin for ImageRelocation
impl UnwindSafe for ImageRelocation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)