pub fn impl_methods(ty: &Type, impls: &mut Vec<ImplItem>) -> TokenStream