[][src]Enum parity_wasm::elements::RelocationEntry

pub enum RelocationEntry {
    FunctionIndexLeb {
        offset: u32,
        index: u32,
    },
    TableIndexSleb {
        offset: u32,
        index: u32,
    },
    TableIndexI32 {
        offset: u32,
        index: u32,
    },
    MemoryAddressLeb {
        offset: u32,
        index: u32,
        addend: i32,
    },
    MemoryAddressSleb {
        offset: u32,
        index: u32,
        addend: i32,
    },
    MemoryAddressI32 {
        offset: u32,
        index: u32,
        addend: i32,
    },
    TypeIndexLeb {
        offset: u32,
        index: u32,
    },
    GlobalIndexLeb {
        offset: u32,
        index: u32,
    },
}

Relocation entry.

Variants

Function index.

Fields of FunctionIndexLeb

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Function table index.

Fields of TableIndexSleb

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Function table index.

Fields of TableIndexI32

Offset of the value to rewrite.

Index of the function symbol in the symbol table.

Linear memory index.

Fields of MemoryAddressLeb

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Linear memory index.

Fields of MemoryAddressSleb

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Linear memory index.

Fields of MemoryAddressI32

Offset of the value to rewrite.

Index of the data symbol in the symbol table.

Addend to add to the address.

Type table index.

Fields of TypeIndexLeb

Offset of the value to rewrite.

Index of the type used.

Global index.

Fields of GlobalIndexLeb

Offset of the value to rewrite.

Index of the global symbol in the symbol table.

Trait Implementations

impl Deserialize for RelocationEntry
[src]

Serialization error produced by deserialization routine.

Deserialize type from serial i/o

impl Serialize for RelocationEntry
[src]

Serialization error produced by serialization routine.

Serialize type to serial i/o

impl Copy for RelocationEntry
[src]

impl Clone for RelocationEntry
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<RelocationEntry> for RelocationEntry
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for RelocationEntry
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RelocationEntry

impl Sync for RelocationEntry

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.