Home
last modified time | relevance | path

Searched refs:InstanceType (Results 1 – 19 of 19) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dtypes.rs5 use crate::component::matching::InstanceType;
47 fn new(index: T, ty: &InstanceType<'_>) -> Handle<T> { in new()
55 fn instance(&self) -> InstanceType<'_> { in instance()
56 InstanceType { in instance()
326 pub(crate) fn from(index: TypeListIndex, ty: &InstanceType<'_>) -> Self { in from()
349 pub(crate) fn from(index: TypeMapIndex, ty: &InstanceType<'_>) -> Self { in from()
574 types: &InstanceType<'_>, in typecheck_payload()
611 ty: &InstanceType<'_>, in equivalent_payload_guest()
668 ty: &InstanceType<'_>, in equivalent_payload_guest()
1071 pub fn instance_type(&self) -> InstanceType<'_> { in instance_type()
[all …]
H A Dmatching.rs26 pub struct InstanceType<'a> { struct
170 let instance_type = InstanceType { in func()
189 impl<'a> InstanceType<'a> { impl
190 pub fn new(instance: &'a ComponentInstance) -> InstanceType<'a> { in new()
191 InstanceType { in new()
H A Dconcurrent_disabled.rs2 use crate::component::matching::InstanceType;
71 fn typecheck(_ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
121 fn typecheck(_ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
H A Dcomponent.rs2 use crate::component::matching::InstanceType;
390 fn with_uninstantiated_instance_type<R>(&self, f: impl FnOnce(&InstanceType<'_>) -> R) -> R { in with_uninstantiated_instance_type()
392 f(&InstanceType { in with_uninstantiated_instance_type()
H A Dmod.rs155 pub use super::matching::InstanceType;
H A Dinstance.rs3 use crate::component::matching::InstanceType;
264 Some(InstanceType::new(instance).resource_type(*id)) in get_resource()
310 &InstanceType::new(data), in _get_export()
1148 pub fn instance_type(&self) -> InstanceType<'_> { in instance_type()
1149 InstanceType { in instance_type()
H A Dfunc.rs3 use crate::component::matching::InstanceType;
169 let cx = InstanceType::new(instance.unwrap_or_else(|| self.instance.id().get(store))); in typecheck()
186 let cx = InstanceType::new(self.instance.id().get(store)); in ty_()
H A Dlinker.rs5 use crate::component::matching::{InstanceType, TypeChecker};
189 &InstanceType { in substituted_component_type()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/
H A Dfuture_stream_any.rs6 use crate::component::matching::InstanceType;
146 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
316 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
371 typecheck: fn(Option<&InterfaceType>, &InstanceType<'_>) -> Result<()>,
394 let types = InstanceType::new(&store.component_instance(id)); in new_guest_future()
406 let types = InstanceType::new(&store.component_instance(id)); in new_guest_stream()
425 types: &InstanceType<'_>, in typecheck_guest()
427 equivalent: fn(&T, &InstanceType<'_>, Option<&InterfaceType>) -> bool, in typecheck_guest()
H A Dfutures_and_streams.rs5 use crate::component::matching::InstanceType;
1451 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck()
1828 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck()
2015 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/
H A Doptions.rs4 use crate::component::matching::InstanceType;
277 pub fn instance_type(&self) -> InstanceType<'_> { in instance_type()
278 InstanceType::new(self.instance()) in instance_type()
454 pub fn instance_type(&self) -> InstanceType<'_> { in instance_type()
455 InstanceType::new(&self.instance) in instance_type()
H A Dtyped.rs3 use crate::component::matching::InstanceType;
749 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()>; in typecheck()
2348 types: &InstanceType<'_>, in typecheck_tuple()
2349 expected: &[fn(&InterfaceType, &InstanceType<'_>) -> Result<()>], in typecheck_tuple()
2374 types: &InstanceType<'_>, in typecheck_record()
2375 expected: &[(&str, fn(&InterfaceType, &InstanceType<'_>) -> Result<()>)], in typecheck_record()
2408 types: &InstanceType<'_>, in typecheck_variant()
2411 Option<fn(&InterfaceType, &InstanceType<'_>) -> Result<()>>, in typecheck_variant()
2454 types: &InstanceType<'_>, in typecheck_enum()
2485 types: &InstanceType<'_>, in typecheck_flags()
[all …]
H A Dhost.rs8 use crate::component::matching::InstanceType;
44 typecheck: fn(TypeFuncIndex, &InstanceType<'_>) -> Result<()>,
243 pub fn typecheck(&self, ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck()
294 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()>; in typecheck()
625 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck()
708 fn typecheck(ty: TypeFuncIndex, types: &InstanceType<'_>) -> Result<()> { in typecheck()
/wasmtime-44.0.1/crates/test-util/src/
H A Dcomponent.rs4 CanonicalAbiInfo, InstanceType, InterfaceType, LiftContext, LowerContext,
60 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> {
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/
H A Dhost_dynamic.rs3 use crate::component::matching::InstanceType;
150 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck()
H A Dhost_static.rs13 use crate::component::matching::InstanceType;
222 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck()
H A Dany.rs13 use crate::component::matching::InstanceType;
278 fn typecheck(ty: &InterfaceType, _types: &InstanceType<'_>) -> Result<()> { in typecheck()
H A Dhost.rs3 use crate::component::matching::InstanceType;
318 fn typecheck(ty: &InterfaceType, types: &InstanceType<'_>) -> Result<()> { in typecheck()
/wasmtime-44.0.1/crates/component-macro/src/
H A Dcomponent.rs415 types: &#internal::InstanceType<'_>, in expand_record_for_component_type()
1028 types: &#internal::InstanceType<'_>, in expand_variant()
1089 types: &#internal::InstanceType<'_>, in expand_enum()