Struct wasmer_compiler::Relocation[][src]

pub struct Relocation {
    pub kind: RelocationKind,
    pub reloc_target: RelocationTarget,
    pub offset: CodeOffset,
    pub addend: Addend,
}

A record of a relocation to perform.

Fields

kind: RelocationKind

The relocation kind.

reloc_target: RelocationTarget

Relocation target.

offset: CodeOffset

The offset where to apply the relocation.

addend: Addend

The addend to add to the relocation value.

Implementations

impl Relocation[src]

pub fn for_address(
    &self,
    start: usize,
    target_func_address: u64
) -> (usize, u64)
[src]

Given a function start address, provide the relocation relative to that address.

The function returns the relocation address and the delta.

Trait Implementations

impl Clone for Relocation[src]

impl Debug for Relocation[src]

impl<'de> Deserialize<'de> for Relocation[src]

impl Eq for Relocation[src]

impl PartialEq<Relocation> for Relocation[src]

impl Serialize for Relocation[src]

impl StructuralEq for Relocation[src]

impl StructuralPartialEq for Relocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.