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§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