Lines Matching refs:OwnedRooted
404 Func::wrap(&mut store, || -> OwnedRooted<ExternRef> { in func_constructors()
407 Func::wrap(&mut store, || -> Option<OwnedRooted<ExternRef>> { None }); in func_constructors()
412 Func::wrap(&mut store, || -> OwnedRooted<AnyRef> { in func_constructors()
415 Func::wrap(&mut store, || -> Option<OwnedRooted<AnyRef>> { None }); 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()
470 Func::wrap(&mut store, || -> Result<OwnedRooted<AnyRef>> { in func_constructors()
473 Func::wrap(&mut store, || -> Result<Option<OwnedRooted<AnyRef>>> { in func_constructors()
603 _: Option<OwnedRooted<ExternRef>>, in signatures_match()
605 _: Option<OwnedRooted<AnyRef>>, in signatures_match()
700 g: Option<OwnedRooted<ExternRef>>, in import_works()
703 j: Option<OwnedRooted<AnyRef>>, in import_works()
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()
841 let f = Func::wrap(&mut store, || -> OwnedRooted<AnyRef> { in get_from_wrapper()
844 assert!(f.typed::<(), OwnedRooted<AnyRef>>(&store).is_ok()); in get_from_wrapper()
845 let f = Func::wrap(&mut store, || -> Option<OwnedRooted<AnyRef>> { in get_from_wrapper()
848 assert!(f.typed::<(), Option<OwnedRooted<AnyRef>>>(&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()
892 let f = Func::wrap(&mut store, |_: OwnedRooted<AnyRef>| {}); in get_from_wrapper()
893 assert!(f.typed::<OwnedRooted<AnyRef>, ()>(&store).is_ok()); in get_from_wrapper()
894 let f = Func::wrap(&mut store, |_: Option<OwnedRooted<AnyRef>>| {}); in get_from_wrapper()
895 assert!(f.typed::<Option<OwnedRooted<AnyRef>>, ()>(&store).is_ok()); in get_from_wrapper()