Home
last modified time | relevance | path

Searched refs:BorrowedLifetimes (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/serde_derive/src/
Dde.rs96 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 { enum
230 impl BorrowedLifetimes { implementation
233 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 …]
/external/rust/crates/serde_derive/src/internals/
Dattr.rs1669 struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>); in parse_lit_into_lifetimes() struct
1671 impl Parse for BorrowedLifetimes { in parse_lit_into_lifetimes() implementation
1673 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()