pub enum RelocKind {
FunctionIndexLeb,
TableIndexSleb,
TableIndexI32,
MemoryAddrLeb,
MemoryAddrSleb,
MemoryAddrI32,
TypeIndexLeb,
GlobalIndexLeb,
TagIndexLeb,
TableNumberLeb,
}Expand description
What a relocated field holds.
Variants§
FunctionIndexLeb
The index of a function, in call.
TableIndexSleb
The table slot of a function, in i32.const.
TableIndexI32
The table slot of a function, in data.
MemoryAddrLeb
A data address, in the offset of a load or a store.
MemoryAddrSleb
A data address, in i32.const.
MemoryAddrI32
A data address, in data.
TypeIndexLeb
The index of a type, in call_indirect.
GlobalIndexLeb
The index of a global, in global.get and global.set.
TagIndexLeb
The index of a tag, in throw and try_table.
TableNumberLeb
The number of a table, in call_indirect.
Implementations§
Trait Implementations§
impl Copy for RelocKind
impl Eq for RelocKind
impl StructuralPartialEq for RelocKind
Auto Trait Implementations§
impl Freeze for RelocKind
impl RefUnwindSafe for RelocKind
impl Send for RelocKind
impl Sync for RelocKind
impl Unpin for RelocKind
impl UnsafeUnpin for RelocKind
impl UnwindSafe for RelocKind
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.