Lines Matching full:generics
11 Attribute, ExprPath, ExprStruct, Generics, Ident, Item, Lifetime, LifetimeDef, Macro, PatPath,
35 pub(crate) fn determine_lifetime_name(lifetime_name: &mut String, generics: &mut Generics) { in determine_lifetime_name() argument
47 lifetimes.visit_generics_mut(generics); in determine_lifetime_name()
58 generics: &mut Generics, in insert_lifetime_and_bound() argument
60 orig_generics: &Generics, in insert_lifetime_and_bound() argument
63 insert_lifetime(generics, lifetime.clone()); in insert_lifetime_and_bound()
77 /// Inserts a `lifetime` at position `0` of `generics.params`.
78 pub(crate) fn insert_lifetime(generics: &mut Generics, lifetime: Lifetime) { in insert_lifetime() argument
79 generics.lt_token.get_or_insert_with(<Token![<]>::default); in insert_lifetime()
80 generics.gt_token.get_or_insert_with(<Token![>]>::default); in insert_lifetime()
81 generics.params.insert(0, LifetimeDef::new(lifetime).into()); in insert_lifetime()