Lines Matching refs:ExternRef

400     Func::wrap(&mut store, || -> Rooted<ExternRef> {  in func_constructors()
403 Func::wrap(&mut store, || -> Option<Rooted<ExternRef>> { None }); in func_constructors()
404 Func::wrap(&mut store, || -> OwnedRooted<ExternRef> { in func_constructors()
407 Func::wrap(&mut store, || -> Option<OwnedRooted<ExternRef>> { None }); in func_constructors()
452 Func::wrap(&mut store, || -> Result<Rooted<ExternRef>> { in func_constructors()
455 Func::wrap(&mut store, || -> Result<Option<Rooted<ExternRef>>> { in func_constructors()
458 Func::wrap(&mut store, || -> Result<OwnedRooted<ExternRef>> { in func_constructors()
461 Func::wrap(&mut store, || -> Result<Option<OwnedRooted<ExternRef>>> { in func_constructors()
602 _: Option<Rooted<ExternRef>>, in signatures_match()
603 _: Option<OwnedRooted<ExternRef>>, in signatures_match()
699 f: Option<Rooted<ExternRef>>, in import_works()
700 g: Option<OwnedRooted<ExternRef>>, in import_works()
753 let hello = Val::ExternRef(Some(ExternRef::new(&mut store, "hello".to_string())?)); in import_works()
754 let goodbye = Val::ExternRef(Some(ExternRef::new(&mut store, "goodbye".to_string())?)); in import_works()
814 let f = Func::wrap(&mut store, || -> Rooted<ExternRef> { in get_from_wrapper()
817 assert!(f.typed::<(), Rooted<ExternRef>>(&store).is_ok()); in get_from_wrapper()
818 let f = Func::wrap(&mut store, || -> Option<Rooted<ExternRef>> { in get_from_wrapper()
821 assert!(f.typed::<(), Option<Rooted<ExternRef>>>(&store).is_ok()); in get_from_wrapper()
822 let f = Func::wrap(&mut store, || -> OwnedRooted<ExternRef> { in get_from_wrapper()
825 assert!(f.typed::<(), OwnedRooted<ExternRef>>(&store).is_ok()); in get_from_wrapper()
826 let f = Func::wrap(&mut store, || -> Option<OwnedRooted<ExternRef>> { in get_from_wrapper()
830 f.typed::<(), Option<OwnedRooted<ExternRef>>>(&store) in get_from_wrapper()
877 let f = Func::wrap(&mut store, |_: Rooted<ExternRef>| {}); in get_from_wrapper()
878 assert!(f.typed::<Rooted<ExternRef>, ()>(&store).is_ok()); in get_from_wrapper()
879 let f = Func::wrap(&mut store, |_: Option<Rooted<ExternRef>>| {}); in get_from_wrapper()
880 assert!(f.typed::<Option<Rooted<ExternRef>>, ()>(&store).is_ok()); in get_from_wrapper()
881 let f = Func::wrap(&mut store, |_: OwnedRooted<ExternRef>| {}); in get_from_wrapper()
882 assert!(f.typed::<OwnedRooted<ExternRef>, ()>(&store).is_ok()); in get_from_wrapper()
883 let f = Func::wrap(&mut store, |_: Option<OwnedRooted<ExternRef>>| {}); in get_from_wrapper()
885 f.typed::<Option<OwnedRooted<ExternRef>>, ()>(&store) in get_from_wrapper()
1584 |mut caller: Caller<'_, ()>, func: Option<Func>, externref: Option<Rooted<ExternRef>>| { in calls_with_funcref_and_externref()
1597 ….get_typed_func::<(Option<Func>, Option<Rooted<ExternRef>>), (Option<Rooted<ExternRef>>, Option<Fu… in calls_with_funcref_and_externref()
1603 let my_externref = ExternRef::new(&mut store, 99u32)?; in calls_with_funcref_and_externref()
1612 fn assert_my_externref(store: impl AsContext, externref: Option<Rooted<ExternRef>>) { in calls_with_funcref_and_externref() argument
1630 &[Val::FuncRef(None), Val::ExternRef(None)], in calls_with_funcref_and_externref()
1642 &[Val::FuncRef(Some(my_funcref)), Val::ExternRef(None)], in calls_with_funcref_and_externref()
1654 &[Val::FuncRef(None), Val::ExternRef(Some(my_externref))], in calls_with_funcref_and_externref()
1668 Val::ExternRef(Some(my_externref)), in calls_with_funcref_and_externref()
1741 .typed::<Option<Rooted<ExternRef>>, ()>(&store) in typed_concrete_param()
1794 let e = f.typed::<(), Rooted<ExternRef>>(&store).err().unwrap(); in typed_concrete_result()
2306 results[0] = ExternRef::new(&mut caller, 200)?.into(); in wasm_to_host_trampolines_and_subtyping()