Struct goblin::pe::relocation::Relocation [−][src]
A COFF relocation.
Fields
virtual_address: u32
The address of the item to which relocation is applied.
This is the offset from the beginning of the section, plus the
value of the section’s virtual_address
field.
symbol_table_index: u32
A zero-based index into the symbol table.
This symbol gives the address that is to be used for the relocation. If the specified symbol has section storage class, then the symbol’s address is the address with the first section of the same name.
typ: u16
A value that indicates the kind of relocation that should be performed.
Valid relocation types depend on machine type.
Trait Implementations
impl Clone for Relocation
[src]
fn clone(&self) -> Relocation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Relocation
[src]
impl Debug for Relocation
[src]
impl Default for Relocation
[src]
fn default() -> Relocation
[src]
impl FromCtx<Endian, [u8]> for Relocation
[src]
impl<'a> IntoCtx<Endian, [u8]> for &'a Relocation
[src]
impl IntoCtx<Endian, [u8]> for Relocation
[src]
impl PartialEq<Relocation> for Relocation
[src]
fn eq(&self, other: &Relocation) -> bool
[src]
fn ne(&self, other: &Relocation) -> bool
[src]
impl SizeWith<Endian> for Relocation
[src]
impl StructuralPartialEq for Relocation
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Relocation where
Relocation: 'a,
[src]
Relocation: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a Relocation
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for Relocation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
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> 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>,