pub struct WasiCoreModule {
pub name: Option<String>,
pub index: u32,
pub function_types: Vec<WasiFunctionType>,
pub functions: Vec<WasiFunction>,
pub exports: Vec<WasiExport>,
pub imports: Vec<WasiImport>,
pub memories: Vec<WasiMemory>,
pub tables: Vec<WasiTable>,
pub globals: Vec<WasiGlobal>,
pub data_segments: Vec<WasiDataSegment>,
pub element_segments: Vec<WasiElementSegment>,
pub start_function: Option<u32>,
}Expand description
核心模块定义
Fields§
§name: Option<String>模块名称(可选)
index: u32模块索引
function_types: Vec<WasiFunctionType>函数类型定义
functions: Vec<WasiFunction>函数定义
exports: Vec<WasiExport>导出定义
imports: Vec<WasiImport>导入定义
memories: Vec<WasiMemory>内存定义
tables: Vec<WasiTable>表定义
globals: Vec<WasiGlobal>全局变量定义
data_segments: Vec<WasiDataSegment>数据段
element_segments: Vec<WasiElementSegment>元素段
start_function: Option<u32>起始函数索引
Trait Implementations§
Source§impl Clone for WasiCoreModule
impl Clone for WasiCoreModule
Source§fn clone(&self) -> WasiCoreModule
fn clone(&self) -> WasiCoreModule
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 WasiCoreModule
impl RefUnwindSafe for WasiCoreModule
impl Send for WasiCoreModule
impl Sync for WasiCoreModule
impl Unpin for WasiCoreModule
impl UnsafeUnpin for WasiCoreModule
impl UnwindSafe for WasiCoreModule
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