/// Allocates the module data structures.
Allocates the module data structures.
Allocates the module data structures .
pub fn new() -> Self {
        Self {
            id: Self::next_id(),
            name: None,
            imports: Vec::new(),
            exports: IndexMap::new(),
            start_func: None,
            table_elements: Vec::new(),
            passive_elements: HashMap::new(),
            passive_data: HashMap::new(),
            func_names: HashMap::new(),
            num_imported_funcs: 0,
            num_imported_tables: 0,
            num_imported_memories: 0,
            num_imported_globals: 0,
            signatures: PrimaryMap::new(),
            functions: PrimaryMap::new(),
            table_plans: PrimaryMap::new(),
            memory_plans: PrimaryMap::new(),
            globals: PrimaryMap::new(),
        }
    }
pub fn new ( ) -> Self { Self { id : Self :: next_id ( ) , name : None , imports : Vec :: new ( ) , exports : IndexMap :: new ( ) , start_func : None , table_elements : Vec :: new ( ) , passive_elements : HashMap :: new ( ) , passive_data : HashMap :: new ( ) , func_names : HashMap :: new ( ) , num_imported_funcs : 0 , num_imported_tables : 0 , num_imported_memories : 0 , num_imported_globals : 0 , signatures : PrimaryMap :: new ( ) , functions : PrimaryMap :: new ( ) , table_plans : PrimaryMap :: new ( ) , memory_plans : PrimaryMap :: new ( ) , globals : PrimaryMap :: new ( ) , } }
Allocates the module data structures.
Allocates the module data structures .