Lines Matching refs:ty
11 pub fn generate_caster(ty: &impl ToTokens, trait_: &impl ToTokens, sync: bool) -> TokenStream { in generate_caster()
18 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
19 |from| from.downcast_mut::<#ty>().unwrap(), in generate_caster()
20 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
21 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
22 |from| from.downcast::<#ty>().unwrap() in generate_caster()
28 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
29 |from| from.downcast_mut::<#ty>().unwrap(), in generate_caster()
30 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
31 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
44 (::std::any::TypeId::of::<#ty>(), Box::new(#new_caster)) in generate_caster()
50 (::core::any::TypeId::of::<#ty>(), alloc::boxed::Box::new(#new_caster)) in generate_caster()