[−][src]Struct goblin::pe::relocation::Relocation
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 Default for Relocation
[src]
fn default() -> Relocation
[src]
impl Clone for Relocation
[src]
fn clone(&self) -> Relocation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<Relocation> for Relocation
[src]
fn eq(&self, other: &Relocation) -> bool
[src]
fn ne(&self, other: &Relocation) -> bool
[src]
impl Copy for Relocation
[src]
impl Debug for Relocation
[src]
impl FromCtx<Endian, [u8]> for Relocation
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Relocation where
Relocation: 'a,
[src]
Relocation: 'a,
type Error = Error
type Size = usize
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, Self::Size), Self::Error>
impl<'a> IntoCtx<Endian, [u8]> for &'a Relocation
[src]
impl IntoCtx<Endian, [u8]> for Relocation
[src]
impl<'a> TryIntoCtx<Endian, [u8]> for &'a Relocation
[src]
type Error = Error
type Size = usize
fn try_into_ctx(
self,
dst: &mut [u8],
ctx: Endian
) -> Result<Self::Size, Self::Error>
[src]
self,
dst: &mut [u8],
ctx: Endian
) -> Result<Self::Size, Self::Error>
impl TryIntoCtx<Endian, [u8]> for Relocation
[src]
type Error = Error
type Size = usize
fn try_into_ctx(
self,
dst: &mut [u8],
ctx: Endian
) -> Result<Self::Size, Self::Error>
[src]
self,
dst: &mut [u8],
ctx: Endian
) -> Result<Self::Size, Self::Error>
impl SizeWith<Endian> for Relocation
[src]
Auto Trait Implementations
impl Sync for Relocation
impl Send for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
impl RefUnwindSafe for Relocation
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for 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.
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,