pub enum LoadOp {
Show 15 variants
I32,
I64,
F32,
F64,
I32Load8S,
I32Load8U,
I32Load16S,
I32Load16U,
I64Load8S,
I64Load8U,
I64Load16S,
I64Load16U,
I64Load32S,
I64Load32U,
V128,
}Expand description
Linear-memory load operations.
Variants§
I32
I64
F32
F64
I32Load8S
I32Load8U
I32Load16S
I32Load16U
I64Load8S
I64Load8U
I64Load16S
I64Load16U
I64Load32S
I64Load32U
V128
Implementations§
Source§impl LoadOp
impl LoadOp
Sourcepub fn byte_width(self) -> usize
pub fn byte_width(self) -> usize
Bytes read from memory.
Sourcepub fn result_type(self) -> ValType
pub fn result_type(self) -> ValType
Value type produced by the load.
Sourcepub fn sign_extend(self) -> bool
pub fn sign_extend(self) -> bool
Whether the loaded value is sign-extended to the result type.
Trait Implementations§
impl Copy for LoadOp
impl Eq for LoadOp
impl StructuralPartialEq for LoadOp
Auto Trait Implementations§
impl Freeze for LoadOp
impl RefUnwindSafe for LoadOp
impl Send for LoadOp
impl Sync for LoadOp
impl Unpin for LoadOp
impl UnsafeUnpin for LoadOp
impl UnwindSafe for LoadOp
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