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
Function index.
Fields
TableIndexSleb
Function table index.
Fields
TableIndexI32
Function table index.
Fields
MemoryAddressLeb
Linear memory index.
Fields
MemoryAddressSleb
Linear memory index.
Fields
MemoryAddressI32
Linear memory index.
Fields
TypeIndexLeb
Type table index.
GlobalIndexLeb
Global index.
Trait Implementations§
source§impl Clone for RelocationEntry
impl Clone for RelocationEntry
source§fn clone(&self) -> RelocationEntry
fn clone(&self) -> RelocationEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RelocationEntry
impl Debug for RelocationEntry
source§impl Deserialize for RelocationEntry
impl Deserialize for RelocationEntry
source§impl PartialEq for RelocationEntry
impl PartialEq for RelocationEntry
source§fn 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 ==
.source§impl Serialize for RelocationEntry
impl Serialize for RelocationEntry
impl Copy for RelocationEntry
impl StructuralPartialEq for RelocationEntry
Auto Trait Implementations§
impl Freeze for RelocationEntry
impl RefUnwindSafe for RelocationEntry
impl Send for RelocationEntry
impl Sync for RelocationEntry
impl Unpin for RelocationEntry
impl UnwindSafe for RelocationEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)