MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / _typed

Method _typed

crates/wasmtime/src/runtime/component/func.rs:147–158  ·  view source on GitHub ↗
(
        &self,
        store: &StoreOpaque,
        instance: Option<&ComponentInstance>,
    )

Source from the content-addressed store, hash-verified

145 }
146
147 pub(crate) fn _typed<Params, Return>(
148 &self,
149 store: &StoreOpaque,
150 instance: Option<&ComponentInstance>,
151 ) -> Result<TypedFunc<Params, Return>>
152 where
153 Params: ComponentNamedList + Lower,
154 Return: ComponentNamedList + Lift,
155 {
156 self.typecheck::<Params, Return>(store, instance)?;
157 unsafe { Ok(TypedFunc::new_unchecked(*self)) }
158 }
159
160 fn typecheck<Params, Return>(
161 &self,

Callers 1

typedMethod · 0.80

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected