/// Return a `VMTableDefinition` for exposing the table to compiled wasm code.
Return a `VMTableDefinition` for exposing the table to compiled wasm code.
Return a ` VMTableDefinition ` for exposing the table to compiled wasm code .
pub fn vmtable(&mut self) -> VMTableDefinition {
        match self {
            Table::Static { data, size, .. } => VMTableDefinition {
                base: data.as_mut_ptr().cast(),
                current_elements: *size,
            },
            Table::Dynamic { elements, .. } => VMTableDefinition {
                base: elements.as_mut_ptr().cast(),
                current_elements: elements.len().try_into().unwrap(),
            },
        }
    }
pub fn vmtable ( & mut self ) -> VMTableDefinition { match self { Table :: Static { data , size , .. } => VMTableDefinition { base : data . as_mut_ptr ( ) . cast ( ) , current_elements : * size , } , Table :: Dynamic { elements , .. } => VMTableDefinition { base : elements . as_mut_ptr ( ) . cast ( ) , current_elements : elements . len ( ) . try_into ( ) . unwrap ( ) , } , } }
Return a `VMTableDefinition` for exposing the table to compiled wasm code.
Return a ` VMTableDefinition ` for exposing the table to compiled wasm code .
&mut self