pub struct WasiFunction {
pub type_index: u32,
pub locals: Vec<WasmLocal>,
pub body: Vec<WasiInstruction>,
}Expand description
WASM 函数定义
Fields§
§type_index: u32函数类型索引
locals: Vec<WasmLocal>局部变量
body: Vec<WasiInstruction>函数体指令
Trait Implementations§
Source§impl Clone for WasiFunction
impl Clone for WasiFunction
Source§fn clone(&self) -> WasiFunction
fn clone(&self) -> WasiFunction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WasiFunction
impl RefUnwindSafe for WasiFunction
impl Send for WasiFunction
impl Sync for WasiFunction
impl Unpin for WasiFunction
impl UnsafeUnpin for WasiFunction
impl UnwindSafe for WasiFunction
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