Home
last modified time | relevance | path

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

/linux/rust/syn/
H A Dlifetime.rs20 pub struct Lifetime { struct
25 impl Lifetime { impl
56 Lifetime { in new()
74 impl Display for Lifetime { implementation
81 impl Clone for Lifetime { implementation
83 Lifetime { in clone()
90 impl PartialEq for Lifetime { implementation
91 fn eq(&self, other: &Lifetime) -> bool { in eq()
96 impl Eq for Lifetime {} implementation
98 impl PartialOrd for Lifetime { implementation
[all …]
H A Dgenerics.rs6 use crate::lifetime::Lifetime;
48 Lifetime(LifetimeParam),
63 pub lifetime: Lifetime,
65 pub bounds: Punctuated<Lifetime, Token![+]>,
193 if let GenericParam::Lifetime(lifetime) = self.0.next()? { in next()
207 if let GenericParam::Lifetime(lifetime) = self.0.next()? { in next()
377 pub fn new(lifetime: Lifetime) -> Self { in new()
406 Lifetime(Lifetime),
455 Lifetime(Lifetime),
485 Lifetime(PredicateLifetime),
[all …]
H A Dpath.rs8 use crate::lifetime::Lifetime;
179 Lifetime(Lifetime),
295 use crate::lifetime::Lifetime;
320 if input.peek(Lifetime) && !input.peek2(Token![+]) { in parse()
321 return Ok(GenericArgument::Lifetime(input.parse()?)); in parse()
782 GenericArgument::Lifetime(lt) => lt.to_tokens(tokens), in to_tokens()
818 GenericArgument::Lifetime(_) => { in print_angle_bracketed_generic_arguments()
842 GenericArgument::Lifetime(_) => {} in print_angle_bracketed_generic_arguments()
H A Dty.rs7 use crate::lifetime::Lifetime;
198 pub lifetime: Option<Lifetime>,
282 use crate::lifetime::Lifetime;
390 if content.peek(Lifetime) { in ambig_ty()
469 other @ (TypeParamBound::Lifetime(_) in ambig_ty()
549 || input.peek(Lifetime) in ambig_ty()
608 } else if lookahead.peek(Lifetime) { in ambig_ty()
865 TypeParamBound::Lifetime(lifetime) => { in parse_bounds()
915 TypeParamBound::Lifetime(lifetime) => { in parse()
H A Dbuffer.rs10 use crate::Lifetime;
223 pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> { in lifetime() argument
229 let lifetime = Lifetime { in lifetime()
H A Dscan_expr.rs6 use syn::{AngleBracketedGenericArguments, BinOp, Expr, ExprPath, Lifetime, Lit, Token, Type};
236 Input::ConsumeLifetime => input.parse::<Option<Lifetime>>()?.is_some(), in scan_expr()
H A Dclassify.rs123 TypeParamBound::Lifetime(_) in trailing_unparameterized_path()
299 TypeParamBound::Lifetime(_) | TypeParamBound::PreciseCapture(_) => { in expr_trailing_brace()
H A Dexpr.rs12 use crate::lifetime::Lifetime;
342 pub label: Option<Lifetime>,
403 pub label: Option<Lifetime>,
922 || input.peek(Lifetime) // labeled loop in peek()
1115 pub name: Lifetime,
1197 use crate::lifetime::Lifetime;
1271 } else if input.peek(Lifetime) { in parse_with_earlier_boundary_rule()
1863 } else if input.peek(Lifetime) { in atom_expr()
2697 if input.peek(Lifetime) { in parse()
2722 let label: Option<Lifetime> = ahead.parse()?; in expr_break()
H A Dtoken.rs101 use crate::lifetime::Lifetime;
187 impl_low_level_token!("lifetime" Lifetime lifetime);
H A Dlib.rs440 pub use crate::lifetime::Lifetime;
H A Ditem.rs9 use crate::lifetime::Lifetime;
845 pub reference: Option<(Token![&], Option<Lifetime>)>,
854 pub fn lifetime(&self) -> Option<&Lifetime> { in lifetime() argument
924 use crate::lifetime::Lifetime;
1657 let lifetime: Option<Lifetime> = input.parse()?; in parse()
/linux/rust/syn/gen/
H A Dclone.rs149 crate::CapturedParam::Lifetime(v0) => { in clone()
150 crate::CapturedParam::Lifetime(v0.clone()) in clone()
953 crate::GenericArgument::Lifetime(v0) => { in clone()
954 crate::GenericArgument::Lifetime(v0.clone()) in clone()
977 crate::GenericParam::Lifetime(v0) => { in clone()
978 crate::GenericParam::Lifetime(v0.clone()) in clone()
2037 crate::TypeParamBound::Lifetime(v0) => { in clone()
2038 crate::TypeParamBound::Lifetime(v0.clone()) in clone()
2263 crate::WherePredicate::Lifetime(v0) => { in clone()
2264 crate::WherePredicate::Lifetime(v0.clone()) in clone()
H A Deq.rs174 crate::CapturedParam::Lifetime(self0), in eq()
175 crate::CapturedParam::Lifetime(other0), in eq()
956 crate::GenericArgument::Lifetime(self0), in eq()
957 crate::GenericArgument::Lifetime(other0), in eq()
992 crate::GenericParam::Lifetime(self0), in eq()
993 crate::GenericParam::Lifetime(other0), in eq()
2051 crate::TypeParamBound::Lifetime(self0), in eq()
2052 crate::TypeParamBound::Lifetime(other0), in eq()
2299 crate::WherePredicate::Lifetime(self0), in eq()
2300 crate::WherePredicate::Lifetime(other0), in eq()
H A Dfold.rs579 fn fold_lifetime(&mut self, i: crate::Lifetime) -> crate::Lifetime { in fold_lifetime() argument
1219 crate::CapturedParam::Lifetime(_binding_0) => { in fold_captured_param()
1220 crate::CapturedParam::Lifetime(f.fold_lifetime(_binding_0)) in fold_captured_param()
2185 crate::GenericArgument::Lifetime(_binding_0) => { in fold_generic_argument()
2186 crate::GenericArgument::Lifetime(f.fold_lifetime(_binding_0)) in fold_generic_argument()
2212 crate::GenericParam::Lifetime(_binding_0) => { in fold_generic_param()
2213 crate::GenericParam::Lifetime(f.fold_lifetime_param(_binding_0)) in fold_generic_param()
2678 pub fn fold_lifetime<F>(f: &mut F, node: crate::Lifetime) -> crate::Lifetime in fold_lifetime()
2682 crate::Lifetime { in fold_lifetime()
3621 crate::TypeParamBound::Lifetime(_binding_0) => { in fold_type_param_bound()
[all …]
H A Dhash.rs243 crate::CapturedParam::Lifetime(v0) => { in hash()
1232 crate::GenericArgument::Lifetime(v0) => { in hash()
1267 crate::GenericParam::Lifetime(v0) => { in hash()
2598 crate::TypeParamBound::Lifetime(v0) => { in hash()
2868 crate::WherePredicate::Lifetime(v0) => { in hash()
H A Ddebug.rs301 crate::CapturedParam::Lifetime(v0) => { in fmt()
1422 crate::GenericArgument::Lifetime(v0) => { in fmt()
1461 crate::GenericParam::Lifetime(v0) => { in fmt()
1970 impl Debug for crate::Lifetime { implementation
1975 impl crate::Lifetime { implementation
2913 crate::TypeParamBound::Lifetime(v0) => v0.debug(formatter, "Lifetime"), in fmt()
3228 crate::WherePredicate::Lifetime(v0) => { in fmt()
H A Dvisit_mut.rs550 fn visit_lifetime_mut(&mut self, i: &mut crate::Lifetime) { in visit_lifetime_mut() argument
1202 crate::CapturedParam::Lifetime(_binding_0) => { in visit_captured_param_mut()
2113 crate::GenericArgument::Lifetime(_binding_0) => { in visit_generic_argument_mut()
2140 crate::GenericParam::Lifetime(_binding_0) => { in visit_generic_param_mut()
2584 pub fn visit_lifetime_mut<V>(v: &mut V, node: &mut crate::Lifetime) in visit_lifetime_mut()
3502 crate::TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound_mut()
3754 crate::WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate_mut()
H A Dvisit.rs542 fn visit_lifetime(&mut self, i: &'ast crate::Lifetime) { in visit_lifetime() argument
1200 crate::CapturedParam::Lifetime(_binding_0) => { in visit_captured_param()
2212 crate::GenericArgument::Lifetime(_binding_0) => { in visit_generic_argument()
2239 crate::GenericParam::Lifetime(_binding_0) => { in visit_generic_param()
2719 pub fn visit_lifetime<'ast, V>(v: &mut V, node: &'ast crate::Lifetime) in visit_lifetime()
3680 crate::TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound()
3936 crate::WherePredicate::Lifetime(_binding_0) => { in visit_where_predicate()
/linux/Documentation/driver-api/usb/
H A Ddwc3.rst584 Lifetime of a ``struct usb_request``
624 Lifetime of a ``TRB``
627 A ``TRB`` Lifetime is simple. We are either preparing a ``TRB`` or
663 Lifetime of an Endpoint