pub fn instance_type_at<'a, 'b>(self, cx: &'b ModuleContext<'a>, type_index: u32) -> TypeId {
        if let Type::Instance(_) = self.type_at(cx, type_index) {
            self.types(cx)[usize::try_from(type_index).unwrap()]
        } else {
            panic!("not an instance type")
        }
    }
/// Get the id for instance type at the given type index.
///
/// Panics if the types index space does not contain the given index or the
/// type at the index is not an instance type.
Get the id for instance type at the given type index.
Panics if the types index space does not contain the given index or the
type at the index is not an instance type.
Get the id for instance type at the given type index . Panics if the types index space does not contain the given index or the type at the index is not an instance type .
pub fn instance_type_at<'a, 'b>(self, cx: &'b ModuleContext<'a>, type_index: u32) -> TypeId {
        if let Type::Instance(_) = self.type_at(cx, type_index) {
            self.types(cx)[usize::try_from(type_index).unwrap()]
        } else {
            panic!("not an instance type")
        }
    }
pub fn instance_type_at < ' a , ' b > ( self , cx : & ' b ModuleContext < ' a > , type_index : u32 ) -> TypeId { if let Type :: Instance ( _ ) = self . type_at ( cx , type_index ) { self . types ( cx ) [ usize :: try_from ( type_index ) . unwrap ( ) ] } else { panic ! ( " " ) } }
Get the id for instance type at the given type index.
Get the id for instance type at the given type index .
self
cx
&'b ModuleContext<'a>
type_index
u32
self
cx
&'b ModuleContext<'a>
type_index
u32