Lines Matching refs:AnyRef

408     Func::wrap(&mut store, || -> Rooted<AnyRef> {  in func_constructors()
411 Func::wrap(&mut store, || -> Option<Rooted<AnyRef>> { 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()
464 Func::wrap(&mut store, || -> Result<Rooted<AnyRef>> { in func_constructors()
467 Func::wrap(&mut store, || -> Result<Option<Rooted<AnyRef>>> { 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()
604 _: Option<Rooted<AnyRef>>, in signatures_match()
605 _: Option<OwnedRooted<AnyRef>>, in signatures_match()
702 i: Option<Rooted<AnyRef>>, in import_works()
703 j: Option<OwnedRooted<AnyRef>>, in import_works()
833 let f = Func::wrap(&mut store, || -> Rooted<AnyRef> { in get_from_wrapper()
836 assert!(f.typed::<(), Rooted<AnyRef>>(&store).is_ok()); in get_from_wrapper()
837 let f = Func::wrap(&mut store, || -> Option<Rooted<AnyRef>> { in get_from_wrapper()
840 assert!(f.typed::<(), Option<Rooted<AnyRef>>>(&store).is_ok()); 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()
888 let f = Func::wrap(&mut store, |_: Rooted<AnyRef>| {}); in get_from_wrapper()
889 assert!(f.typed::<Rooted<AnyRef>, ()>(&store).is_ok()); in get_from_wrapper()
890 let f = Func::wrap(&mut store, |_: Option<Rooted<AnyRef>>| {}); in get_from_wrapper()
891 assert!(f.typed::<Option<Rooted<AnyRef>>, ()>(&store).is_ok()); 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()