pub fn insert_wasmparser(
        &mut self,
        ty: wasmparser::TypeDef<'a>,
        types_space: &[TypeId],
    ) -> TypeId {
        match ty {
            wasmparser::TypeDef::Func(func_ty) => self.insert(Type::Func(func_ty)),
            wasmparser::TypeDef::Instance(inst_ty) => {
                self.insert_wasmparser_instance_type(inst_ty, types_space)
            }
            wasmparser::TypeDef::Module(module_ty) => {
                self.insert_wasmparser_module_type(module_ty, types_space)
            }
        }
    }
/// Intern a `wasmparser` type into this type set and get its id.
///
/// The provided `types_space` must be a slice of the defining module's
/// types index space.
///
/// If the type has already been inserted and assigned an id before, then
/// that entry and its id are reused.
Intern a `wasmparser` type into this type set and get its id.
The provided `types_space` must be a slice of the defining module's
types index space.

If the type has already been inserted and assigned an id before, then
that entry and its id are reused.
Intern a ` wasmparser ` type into this type set and get its id . The provided ` types_space ` must be a slice of the defining module ' s types index space . If the type has already been inserted and assigned an id before then that entry and its id are reused .
pub fn insert_wasmparser(
        &mut self,
        ty: wasmparser::TypeDef<'a>,
        types_space: &[TypeId],
    ) -> TypeId {
        match ty {
            wasmparser::TypeDef::Func(func_ty) => self.insert(Type::Func(func_ty)),
            wasmparser::TypeDef::Instance(inst_ty) => {
                self.insert_wasmparser_instance_type(inst_ty, types_space)
            }
            wasmparser::TypeDef::Module(module_ty) => {
                self.insert_wasmparser_module_type(module_ty, types_space)
            }
        }
    }
pub fn insert_wasmparser ( & mut self , ty : wasmparser :: TypeDef < ' a > , types_space : & [ TypeId ] , ) -> TypeId { match ty { wasmparser :: TypeDef :: Func ( func_ty ) => self . insert ( Type :: Func ( func_ty ) ) , wasmparser :: TypeDef :: Instance ( inst_ty ) => { self . insert_wasmparser_instance_type ( inst_ty , types_space ) } wasmparser :: TypeDef :: Module ( module_ty ) => { self . insert_wasmparser_module_type ( module_ty , types_space ) } } }
Intern a `wasmparser` type into this type set and get its id.
Intern a ` wasmparser ` type into this type set and get its id .
&mut self
ty
wasmparser::TypeDef<'a>
types_space
&[TypeId]
&mut self
ty
wasmparser::TypeDef<'a>
types_space
&[TypeId]