Lines Matching refs:generics
14 pub fn without_defaults(generics: &syn::Generics) -> syn::Generics { in without_defaults()
16 params: generics in without_defaults()
28 ..generics.clone() in without_defaults()
33 generics: &syn::Generics, in with_where_predicates()
36 let mut generics = generics.clone(); in with_where_predicates() localVariable
37 generics in with_where_predicates()
41 generics in with_where_predicates()
46 generics: &syn::Generics, in with_where_predicates_from_fields()
55 let mut generics = generics.clone(); in with_where_predicates_from_fields() localVariable
56 generics.make_where_clause().predicates.extend(predicates); in with_where_predicates_from_fields()
57 generics in with_where_predicates_from_fields()
62 generics: &syn::Generics, in with_where_predicates_from_variants()
68 return generics.clone(); in with_where_predicates_from_variants()
77 let mut generics = generics.clone(); in with_where_predicates_from_variants() localVariable
78 generics.make_where_clause().predicates.extend(predicates); in with_where_predicates_from_variants()
79 generics in with_where_predicates_from_variants()
96 generics: &syn::Generics, in with_bound()
244 let all_type_params = generics in with_bound()
275 let new_predicates = generics in with_bound()
302 let mut generics = generics.clone(); in with_bound() localVariable
303 generics in with_bound()
307 generics in with_bound()
312 generics: &syn::Generics, in with_self_bound()
315 let mut generics = generics.clone(); in with_self_bound() localVariable
316 generics in with_self_bound()
334 generics in with_self_bound()
337 pub fn with_lifetime_bound(generics: &syn::Generics, lifetime: &str) -> syn::Generics { in with_lifetime_bound()
348 .chain(generics.params.iter().cloned().map(|mut param| { in with_lifetime_bound()
366 ..generics.clone() in with_lifetime_bound()
382 .generics in type_of_item()