Enum parity_wasm::elements::RelocationEntry
source · [−]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,
},
}
Expand description
Relocation entry.
Variants
FunctionIndexLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function index.
TableIndexSleb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function table index.
TableIndexI32
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function table index.
MemoryAddressLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
MemoryAddressSleb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
MemoryAddressI32
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
TypeIndexLeb
Type table index.
GlobalIndexLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the global symbol in the symbol table.
Global index.
Trait Implementations
sourceimpl Clone for RelocationEntry
impl Clone for RelocationEntry
sourcefn clone(&self) -> RelocationEntry
fn clone(&self) -> RelocationEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelocationEntry
impl Debug for RelocationEntry
sourceimpl Deserialize for RelocationEntry
impl Deserialize for RelocationEntry
sourceimpl PartialEq<RelocationEntry> for RelocationEntry
impl PartialEq<RelocationEntry> for RelocationEntry
sourcefn eq(&self, other: &RelocationEntry) -> bool
fn eq(&self, other: &RelocationEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RelocationEntry) -> bool
fn ne(&self, other: &RelocationEntry) -> bool
This method tests for !=
.
sourceimpl Serialize for RelocationEntry
impl Serialize for RelocationEntry
impl Copy for RelocationEntry
impl StructuralPartialEq for RelocationEntry
Auto Trait Implementations
impl RefUnwindSafe for RelocationEntry
impl Send for RelocationEntry
impl Sync for RelocationEntry
impl Unpin for RelocationEntry
impl UnwindSafe for RelocationEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more