fn needs_ref(ty: &syn::Type) -> bool {
    match ty::Type::load(ty) {
        Ok(Some(ty::Type::Primitive(_))) => false,
        Ok(Some(ty::Type::Path(_)))=> true,
        _ => false,
    }
}
/// For paths, assume we can convert to an opaque pointer.
For paths, assume we can convert to an opaque pointer.
For paths assume we can convert to an opaque pointer .
fn needs_ref(ty: &syn::Type) -> bool {
    match ty::Type::load(ty) {
        Ok(Some(ty::Type::Primitive(_))) => false,
        Ok(Some(ty::Type::Path(_)))=> true,
        _ => false,
    }
}
fn needs_ref ( ty : & syn :: Type ) -> bool { match ty :: Type :: load ( ty ) { Ok ( Some ( ty :: Type :: Primitive ( _ ) ) ) => false , Ok ( Some ( ty :: Type :: Path ( _ ) ) ) => true , _ => false , } }
For paths, assume we can convert to an opaque pointer.
For paths assume we can convert to an opaque pointer .
ty
&syn::Type
ty
&syn::Type