Home
last modified time | relevance | path

Searched refs:Lifetime (Results 1 – 25 of 50) sorted by relevance

12

/third_party/rust/crates/syn/src/
Dlifetime.rs19 pub struct Lifetime { struct
24 impl Lifetime { implementation
55 Lifetime { in new()
73 impl Display for Lifetime { implementation
80 impl Clone for Lifetime { implementation
82 Lifetime { in clone()
89 impl PartialEq for Lifetime { implementation
90 fn eq(&self, other: &Lifetime) -> bool { in eq()
95 impl Eq for Lifetime {} implementation
97 impl PartialOrd for Lifetime { implementation
[all …]
Dgenerics.rs41 Lifetime(LifetimeDef),
72 pub lifetime: Lifetime,
74 pub bounds: Punctuated<Lifetime, Token![+]>,
228 if let GenericParam::Lifetime(lifetime) = next { in next()
246 if let GenericParam::Lifetime(lifetime) = next { in next()
447 pub fn new(lifetime: Lifetime) -> Self { in new()
478 Lifetime(Lifetime),
541 Lifetime(PredicateLifetime),
572 pub lifetime: Lifetime,
574 pub bounds: Punctuated<Lifetime, Token![+]>,
[all …]
Dpath.rs108 Lifetime(Lifetime),
228 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse()
229 return Ok(GenericArgument::Lifetime(input.parse()?)); in parse()
729 GenericArgument::Lifetime(lt) => lt.to_tokens(tokens), in to_tokens()
763 GenericArgument::Lifetime(_) => { in to_tokens()
785 GenericArgument::Lifetime(_) => {} in to_tokens()
Dbuffer.rs15 use crate::Lifetime;
256 pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> { in lifetime() argument
262 let lifetime = Lifetime { in lifetime()
Dty.rs228 pub lifetime: Option<Lifetime>,
435 if content.peek(Lifetime) { in ambig_ty()
506 other @ TypeParamBound::Lifetime(_) => other, in ambig_ty()
607 || input.peek(Lifetime) in ambig_ty()
649 } else if lookahead.peek(Lifetime) { in ambig_ty()
935 TypeParamBound::Lifetime(lifetime) => { in parse_bounds()
975 TypeParamBound::Lifetime(lifetime) => { in parse()
Dtoken.rs97 use crate::lifetime::Lifetime;
186 impl_token!("lifetime" Lifetime);
Dlib.rs377 pub use crate::lifetime::Lifetime;
Dexpr.rs363 pub label: Option<Lifetime>,
422 pub label: Option<Lifetime>,
1023 pub name: Lifetime,
1738 && (input.peek3(Lifetime) || input.peek3(Token![>])) in atom_expr()
1790 } else if input.peek(Lifetime) { in atom_expr()
2023 && !(input.peek2(Token![<]) && (input.peek3(Lifetime) || input.peek3(Token![>]))) in expr_early()
2585 if input.peek(Lifetime) { in parse()
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_metadata.data384 Lifetime: VOLATILE
387 Lifetime: PERSISTENT
390 Lifetime: volatile, local storage
393 Lifetime: default, local storage
396 Lifetime: 2, local storage
399 Lifetime: 254, local storage
402 Lifetime: read-only, local storage
405 Lifetime: volatile, 0x123456
408 Lifetime: default, 0x123456
411 Lifetime: 2, 0x123456
[all …]
/third_party/rust/crates/serde/serde_derive/src/
Dbound.rs206 syn::GenericArgument::Lifetime(_) in with_bound()
231 syn::TypeParamBound::Lifetime(_) => {} in with_bound()
338 let bound = syn::Lifetime::new(lifetime, Span::call_site()); in with_lifetime_bound()
346 let params = Some(syn::GenericParam::Lifetime(def)) in with_lifetime_bound()
350 syn::GenericParam::Lifetime(param) => { in with_lifetime_bound()
356 .push(syn::TypeParamBound::Lifetime(bound.clone())); in with_lifetime_bound()
392 syn::GenericParam::Lifetime(param) => { in type_of_item()
393 syn::GenericArgument::Lifetime(param.lifetime.clone()) in type_of_item()
Dde.rs231 Borrowed(BTreeSet<syn::Lifetime>),
236 fn de_lifetime(&self) -> syn::Lifetime { in de_lifetime() argument
238 BorrowedLifetimes::Borrowed(_) => syn::Lifetime::new("'de", Span::call_site()), in de_lifetime()
239 BorrowedLifetimes::Static => syn::Lifetime::new("'static", Span::call_site()), in de_lifetime()
247 lifetime: syn::Lifetime::new("'de", Span::call_site()), in de_lifetime_def()
3001 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens()
3020 syn::GenericParam::Lifetime(param) => { in to_tokens()
3024 param.bounds.push(syn::TypeParamBound::Lifetime( in to_tokens()
3031 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime)) in to_tokens()
3036 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens()
[all …]
/third_party/rust/crates/cxx/syntax/
Dmod.rs41 use syn::{Attribute, Expr, Generics, Lifetime, LitInt, Token, Type as RustType};
177 pub lifetimes: Punctuated<Lifetime, Token![,]>,
207 pub lifetime: Option<Lifetime>,
253 pub lifetime: Option<Lifetime>,
270 pub lifetime: Option<Lifetime>,
Dparse.rs92 GenericParam::Lifetime(param) => { in parse_struct()
552 GenericParam::Lifetime(lifetime) => !lifetime.bounds.is_empty(), in parse_extern_fn()
764 GenericParam::Lifetime(param) => { in parse_extern_verbatim_type()
931 bound @ TypeParamBound::Trait(_) | bound @ TypeParamBound::Lifetime(_) => { in parse_extern_type_bounded()
1034 GenericParam::Lifetime(def) if def.bounds.is_empty() => { in parse_impl()
1303 if let GenericArgument::Lifetime(param) = param { in parse_type_path()
Dcheck.rs11 use syn::{GenericParam, Generics, Lifetime};
612 fn check_reserved_lifetime(cx: &mut Check, lifetime: &Lifetime) { in check_reserved_lifetime() argument
631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
/third_party/rust/crates/quote/src/
Druntime.rs219 struct Lifetime<'a> { in push_lifetime() struct
224 impl<'a> Iterator for Lifetime<'a> { in push_lifetime() implementation
242 tokens.extend(Lifetime { in push_lifetime()
249 struct Lifetime<'a> { in push_lifetime_spanned() struct
255 impl<'a> Iterator for Lifetime<'a> { in push_lifetime_spanned() implementation
275 tokens.extend(Lifetime { in push_lifetime_spanned()
/third_party/rust/crates/serde/serde_derive/src/internals/
Dreceiver.rs185 GenericArgument::Lifetime(_) in visit_path_arguments_mut()
210 TypeParamBound::Lifetime(_) => {} in visit_type_param_bound_mut()
222 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut()
234 WherePredicate::Lifetime(_) | WherePredicate::Eq(_) => {} in visit_generics_mut()
Dattr.rs1117 borrowed_lifetimes: BTreeSet<syn::Lifetime>,
1477 pub fn borrowed_lifetimes(&self) -> &BTreeSet<syn::Lifetime> { in borrowed_lifetimes() argument
1662 ) -> Result<BTreeSet<syn::Lifetime>, ()> { in parse_lit_into_lifetimes() argument
1669 struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>); in parse_lit_into_lifetimes()
1746 (syn::GenericArgument::Lifetime(_), syn::GenericArgument::Type(arg)) => elem(arg), in is_cow()
1841 ) -> Result<BTreeSet<syn::Lifetime>, ()> { in borrowable_lifetimes() argument
1855 fn collect_lifetimes(ty: &syn::Type, out: &mut BTreeSet<syn::Lifetime>) { in collect_lifetimes() argument
1883 syn::GenericArgument::Lifetime(lifetime) => { in collect_lifetimes()
1922 fn collect_lifetimes_from_tokens(tokens: TokenStream, out: &mut BTreeSet<syn::Lifetime>) { in collect_lifetimes_from_tokens() argument
1928 out.insert(syn::Lifetime { in collect_lifetimes_from_tokens()
/third_party/rust/crates/cxx/macro/src/
Dgenerics.rs6 use syn::{Lifetime, Token};
85 let lifetime = Lifetime::new("'_", lifetime.span()); in to_tokens()
/third_party/rust/crates/syn/tests/
Dtest_round_trip.rs210 GenericArg::Lifetime(_) => Group::Lifetimes, in normalize()
225 GenericParamKind::Lifetime => Group::Lifetimes, in normalize()
/third_party/rust/crates/syn/tests/common/
Deq.rs71 use rustc_ast::ast::Lifetime;
436 spanless_eq_struct!(Lifetime; id ident);
490 spanless_eq_enum!(GenericArg; Lifetime(0) Type(0) Const(0));
493 spanless_eq_enum!(GenericParamKind; Lifetime Type(default) Const(ty kw_span default));
/third_party/rust/crates/syn/src/gen/
Dclone.rs911 GenericArgument::Lifetime(v0) => GenericArgument::Lifetime(v0.clone()), in clone()
935 GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), in clone()
2006 TypeParamBound::Lifetime(v0) => TypeParamBound::Lifetime(v0.clone()), in clone()
2237 WherePredicate::Lifetime(v0) => WherePredicate::Lifetime(v0.clone()), in clone()
Dfold.rs433 fn fold_lifetime(&mut self, i: Lifetime) -> Lifetime { in fold_lifetime() argument
1784 GenericArgument::Lifetime(_binding_0) => { in fold_generic_argument()
1785 GenericArgument::Lifetime(f.fold_lifetime(_binding_0)) in fold_generic_argument()
1827 GenericParam::Lifetime(_binding_0) => { in fold_generic_param()
1828 GenericParam::Lifetime(f.fold_lifetime_def(_binding_0)) in fold_generic_param()
2249 pub fn fold_lifetime<F>(f: &mut F, node: Lifetime) -> Lifetime in fold_lifetime()
2253 Lifetime { in fold_lifetime()
3086 TypeParamBound::Lifetime(_binding_0) => { in fold_type_param_bound()
3087 TypeParamBound::Lifetime(f.fold_lifetime(_binding_0)) in fold_type_param_bound()
3334 WherePredicate::Lifetime(_binding_0) => { in fold_where_predicate()
[all …]
Deq.rs875 (GenericArgument::Lifetime(self0), GenericArgument::Lifetime(other0)) => { in eq()
922 (GenericParam::Lifetime(self0), GenericParam::Lifetime(other0)) => { in eq()
1937 (TypeParamBound::Lifetime(self0), TypeParamBound::Lifetime(other0)) => { in eq()
2188 (WherePredicate::Lifetime(self0), WherePredicate::Lifetime(other0)) => { in eq()
/third_party/rust/crates/nom/doc/archive/
Dupgrading_to_nom_1.md41 # Lifetime elision
/third_party/rust/crates/syn/tests/debug/
Dgen.rs538 struct Print(syn::Lifetime); in fmt()
645 struct Print(syn::Lifetime); in fmt()
1232 struct Print(syn::Lifetime); in fmt()
1351 struct Print(syn::Lifetime); in fmt()
2204 syn::GenericArgument::Lifetime(_val) => { in fmt()
2274 syn::GenericParam::Lifetime(_val) => { in fmt()
3391 impl Debug for Lite<syn::Lifetime> {
4328 struct Print((syn::token::And, Option<syn::Lifetime>)); in fmt()
4338 struct Print(Option<syn::Lifetime>); in fmt()
4989 struct Print(syn::Lifetime); in fmt()
[all …]

12