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
Function index.
TableIndexSleb
Fields
Function table index.
TableIndexI32
Fields
Function table index.
MemoryAddressLeb
Fields
Linear memory index.
MemoryAddressSleb
Fields
Linear memory index.
MemoryAddressI32
Fields
Linear memory index.
TypeIndexLeb
Type table index.
GlobalIndexLeb
Fields
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<RelocationEntry> for RelocationEntry
impl PartialEq<RelocationEntry> 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 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