/// Create a new dynamic (movable) table instance for the specified table plan.
Create a new dynamic (movable) table instance for the specified table plan.
Create a new dynamic ( movable ) table instance for the specified table plan .
pub fn new_dynamic(plan: &TablePlan, store: &mut dyn Store) -> Result<Self> {
        Self::limit_new(plan, store)?;
        let elements = vec![0; plan.table.minimum as usize];
        let ty = wasm_to_table_type(plan.table.wasm_ty)?;
        let maximum = plan.table.maximum;
        Ok(Table::Dynamic {
            elements,
            ty,
            maximum,
        })
    }
pub fn new_dynamic ( plan : & TablePlan , store : & mut dyn Store ) -> Result < Self > { Self :: limit_new ( plan , store ) ? ; let elements = vec ! [ 0 plan table minimum as usize ] ; let ty = wasm_to_table_type ( plan . table . wasm_ty ) ? ; let maximum = plan . table . maximum ; Ok ( Table :: Dynamic { elements , ty , maximum , } ) }
Create a new dynamic (movable) table instance for the specified table plan.
Create a new dynamic ( movable ) table instance for the specified table plan .
plan
&TablePlan
store
&mut dyn Store