Struct wasmi_validation::context::ModuleContext
source · [−]pub struct ModuleContext {
pub memories: Vec<MemoryType>,
pub tables: Vec<TableType>,
pub globals: Vec<GlobalType>,
pub types: Vec<FunctionType>,
pub func_type_indexes: Vec<u32>,
}
Fields
memories: Vec<MemoryType>
tables: Vec<TableType>
globals: Vec<GlobalType>
types: Vec<FunctionType>
func_type_indexes: Vec<u32>
Implementations
pub fn require_global(
&self,
idx: u32,
mutability: Option<bool>
) -> Result<&GlobalType, Error>
Trait Implementations
Returns the “default value” for a type. Read more