| /wasmtime-44.0.1/crates/c-api/src/component/types/ |
| H A D | func.rs | 3 use wasmtime::component::types::ComponentFunc; 7 pub(crate) ty: ComponentFunc,
|
| H A D | component.rs | 124 ComponentFunc(Box<wasmtime_component_func_type_t>), enumerator 140 ComponentItem::ComponentFunc(ty) => { in from() 141 wasmtime_component_item_t::ComponentFunc(Box::new(ty.into())) in from()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/ |
| H A D | host.rs | 10 use crate::component::types::ComponentFunc; 161 F: Fn(StoreContextMut<'_, T>, ComponentFunc, &[Val], &mut [Val]) -> Result<()> in func_new() argument 185 ComponentFunc, in func_new_async() argument 217 ComponentFunc, in func_new_concurrent() argument 691 F: Fn(StoreContextMut<'_, T>, ComponentFunc, Vec<Val>, usize) -> HostResult<Vec<Val>>, in new() argument 697 impl<T, F, const ASYNC: bool> HostFn<T, (ComponentFunc, Vec<Val>), Vec<Val>> 701 F: Fn(StoreContextMut<'_, T>, ComponentFunc, Vec<Val>, usize) -> HostResult<Vec<Val>>, 720 (ty, mut params): (ComponentFunc, Vec<Val>), in run() argument 733 ) -> Result<(ComponentFunc, Vec<Val>)> { in lift_params() argument 754 Ok((ComponentFunc::from(ty, &cx.instance_type()), params)) in lift_params()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | types.rs | 936 pub struct ComponentFunc(Handle<TypeFuncIndex>); struct 938 impl ComponentFunc { impl 1114 ComponentFunc(ComponentFunc), enumerator 1136 TypeDef::ComponentFunc(idx) => Self::ComponentFunc(ComponentFunc::from(*idx, ty)), in from() 1177 Self::ComponentFunc(ComponentFunc::from(*idx, ty)) in from_export()
|
| H A D | linker.rs | 331 TypeDef::ComponentFunc(_) => { in define_unknown_imports_as_traps() 643 … func: impl Fn(StoreContextMut<'_, T>, types::ComponentFunc, &[Val], &mut [Val]) -> Result<()> in func_new() argument 663 types::ComponentFunc, in func_new_async() argument 688 types::ComponentFunc, in func_new_concurrent() argument
|
| H A D | func.rs | 5 use crate::component::types::ComponentFunc; 181 pub fn ty(&self, store: impl AsContext) -> ComponentFunc { in ty() argument 185 fn ty_(&self, store: &StoreOpaque) -> ComponentFunc { in ty_() argument 188 ComponentFunc::from(ty, &cx) in ty_()
|
| H A D | matching.rs | 48 TypeDef::ComponentFunc(t) => match actual { in definition()
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | smoke-default.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | function-new.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | function-new_concurrent.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | function-new_async.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | smoke-default_async.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | smoke-default_tracing_async.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | function-new_tracing_async.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | smoke-default_concurrent.rs | 122 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | worlds-with-types_concurrent.rs | 147 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | worlds-with-types_tracing_async.rs | 147 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | worlds-with-types_async.rs | 147 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| H A D | worlds-with-types.rs | 147 wasmtime::component::types::ComponentItem::ComponentFunc(func) => { in new()
|
| /wasmtime-44.0.1/crates/wizer/src/component/ |
| H A D | wasmtime.rs | 48 ComponentItem::ComponentFunc(ty) => ty, in validate_component_init_func()
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | aot.rs | 160 ComponentItem::ComponentFunc(t) => t, in reflect_resource_import()
|
| H A D | dynamic.rs | 1029 let ComponentItem::ComponentFunc(run_ty) = run_ty else { in introspection() 1216 let ComponentItem::ComponentFunc(fn_ty) = fn_ty else { in introspection()
|
| /wasmtime-44.0.1/crates/environ/src/component/ |
| H A D | types_builder.rs | 134 Export::LiftedFunction { ty, .. } => TypeDef::ComponentFunc(*ty), in export_type_def() 286 TypeDef::ComponentFunc(self.convert_component_func_type(types, id)?) in convert_component_entity_type() 313 TypeDef::ComponentFunc(self.convert_component_func_type(types, id)?) in convert_type()
|
| H A D | types.rs | 458 ComponentFunc(TypeFuncIndex), enumerator 478 TypeDef::ComponentFunc(_) => "function", in desc()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/ |
| H A D | component.rs | 404 impl WasmFunc for component::types::ComponentFunc { implementation
|