Struct wasm_encoder::MemArg
source · [−]Expand description
The immediate for a memory instruction.
Fields
offset: u64
A static offset to add to the instruction’s dynamic address operand.
This is a u64
field for the memory64 proposal, but 32-bit memories
limit offsets to at most u32::MAX
bytes. This will be encoded as a LEB
but it won’t generate a valid module if an offset is specified which is
larger than the maximum size of the index space for the memory indicated
by memory_index
.
align: u32
The expected alignment of the instruction’s dynamic address operand (expressed the exponent of a power of two).
memory_index: u32
The index of the memory this instruction is operating upon.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemArg
impl Send for MemArg
impl Sync for MemArg
impl Unpin for MemArg
impl UnwindSafe for MemArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more