Searched refs:BorrowedLifetimes (Results 1 – 2 of 2) sorted by relevance
96 if let BorrowedLifetimes::Borrowed(_) = borrowed_lifetimes(cont) { in precondition_no_de_lifetime()123 borrowed: BorrowedLifetimes,160 fn build_generics(cont: &Container, borrowed: &BorrowedLifetimes) -> syn::Generics { in build_generics()225 enum BorrowedLifetimes { enum230 impl BorrowedLifetimes { implementation233 BorrowedLifetimes::Borrowed(_) => syn::Lifetime::new("'de", Span::call_site()), in de_lifetime()234 BorrowedLifetimes::Static => syn::Lifetime::new("'static", Span::call_site()), in de_lifetime()240 BorrowedLifetimes::Borrowed(bounds) => Some(syn::LifetimeDef { in de_lifetime_def()246 BorrowedLifetimes::Static => None, in de_lifetime_def()260 fn borrowed_lifetimes(cont: &Container) -> BorrowedLifetimes { in borrowed_lifetimes() argument[all …]
1669 struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>); in parse_lit_into_lifetimes() struct1671 impl Parse for BorrowedLifetimes { in parse_lit_into_lifetimes() implementation1673 Punctuated::parse_separated_nonempty(input).map(BorrowedLifetimes) in parse_lit_into_lifetimes()1677 if let Ok(BorrowedLifetimes(lifetimes)) = parse_lit_str(string) { in parse_lit_into_lifetimes()