Lines Matching full:let

165     /// # let generics: syn::Generics = Default::default();
166 /// # let name = Ident::new("MyType", Span::call_site());
168 /// let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
193 if let GenericParam::Lifetime(lifetime) = self.0.next()? { in next()
207 if let GenericParam::Lifetime(lifetime) = self.0.next()? { in next()
221 if let GenericParam::Type(type_param) = self.0.next()? { in next()
235 if let GenericParam::Type(type_param) = self.0.next()? { in next()
249 if let GenericParam::Const(const_param) = self.0.next()? { in next()
263 if let GenericParam::Const(const_param) = self.0.next()? { in next()
546 let lt_token: Token![<] = input.parse()?; in parse()
548 let mut params = Punctuated::new(); in parse()
554 let attrs = input.call(Attribute::parse_outer)?; in parse()
555 let lookahead = input.lookahead1(); in parse()
587 let punct = input.parse()?; in parse()
591 let gt_token: Token![>] = input.parse()?; in parse()
605 let attrs = input.call(Attribute::parse_outer)?; in parse()
607 let lookahead = input.lookahead1(); in parse()
632 let has_colon; in parse()
646 let mut bounds = Punctuated::new(); in parse()
652 let value = input.parse()?; in parse()
657 let punct = input.parse()?; in parse()
674 let mut lifetimes = Punctuated::new(); in parse()
703 let attrs = input.call(Attribute::parse_outer)?; in parse()
704 let ident: Ident = input.parse()?; in parse()
705 let colon_token: Option<Token![:]> = input.parse()?; in parse()
707 let mut bounds = Punctuated::new(); in parse()
714 let allow_precise_capture = false; in parse()
715 let allow_const = true; in parse()
721 let punct: Token![+] = input.parse()?; in parse()
726 let eq_token: Option<Token![=]> = input.parse()?; in parse()
727 let default = if eq_token.is_some() { in parse()
747 let allow_precise_capture = true; in parse()
748 let allow_const = true; in parse()
766 let precise_capture: PreciseCapture = input.parse()?; in parse_single()
770 let msg = "`use<...>` precise capturing syntax is not allowed here"; in parse_single()
780 let begin = input.fork(); in parse_single()
782 let content; in parse_single()
783 let (paren_token, content) = if input.peek(token::Paren) { in parse_single()
789 if let Some(mut bound) = TraitBound::do_parse(content, allow_const)? { in parse_single()
803 let mut bounds = Punctuated::new(); in parse_multiple()
805 let bound = Self::parse_single(input, allow_precise_capture, allow_const)?; in parse_multiple()
828 let allow_const = false; in parse()
835 let mut lifetimes: Option<BoundLifetimes> = input.parse()?; in do_parse()
837 let is_conditionally_const = cfg!(feature = "full") && input.peek(token::Bracket); in do_parse()
838 let is_unconditionally_const = cfg!(feature = "full") && input.peek(Token![const]); in do_parse()
840 let conditionally_const; in do_parse()
841 let bracket_token = bracketed!(conditionally_const in input); in do_parse()
844 let msg = "`[const]` is not allowed here"; in do_parse()
848 let const_token: Token![const] = input.parse()?; in do_parse()
850 let msg = "`const` is not allowed here"; in do_parse()
855 let modifier: TraitBoundModifier = input.parse()?; in do_parse()
860 let mut path: Path = input.parse()?; in do_parse()
865 let args: ParenthesizedGenericArguments = input.parse()?; in do_parse()
866 let parenthesized = PathArguments::Parenthesized(args); in do_parse()
874 let msg = "`for<...>` binder not allowed with `?` trait polarity modifier"; in do_parse()
907 let mut default = None; in parse()
916 let eq_token = input.parse()?; in parse()
931 let where_token: Token![where] = input.parse()?; in parse()
941 let mut predicates = Punctuated::new(); in parse()
952 let value = input.parse()?; in parse()
957 let punct = input.parse()?; in parse()
985 let mut bounds = Punctuated::new(); in parse()
996 let value = input.parse()?; in parse()
1001 let punct = input.parse()?; in parse()
1013 let mut bounds = Punctuated::new(); in parse()
1025 let allow_precise_capture = false; in parse()
1026 let allow_const = true; in parse()
1036 let punct = input.parse()?; in parse()
1050 let use_token: Token![use] = input.parse()?; in parse()
1051 let lt_token: Token![<] = input.parse()?; in parse()
1052 let mut params = Punctuated::new(); in parse()
1054 let lookahead = input.lookahead1(); in parse()
1065 let lookahead = input.lookahead1(); in parse()
1074 let gt_token: Token![>] = input.parse()?; in parse()
1088 let lookahead = input.lookahead1(); in parse()
1135 let input = input.fork(); in choose_generics_over_qpath_after_keyword()
1172 let mut trailing_or_empty = true; in to_tokens()
1174 if let GenericParam::Lifetime(_) = **param.value() { in to_tokens()
1206 let mut trailing_or_empty = true; in to_tokens()
1208 if let GenericParam::Lifetime(_) = **param.value() { in to_tokens()
1214 if let GenericParam::Lifetime(_) = **param.value() { in to_tokens()
1258 let mut trailing_or_empty = true; in to_tokens()
1260 if let GenericParam::Lifetime(def) = *param.value() { in to_tokens()
1268 if let GenericParam::Lifetime(_) = **param.value() { in to_tokens()
1333 if let Some(default) = &self.default { in to_tokens()
1343 let to_tokens = |tokens: &mut TokenStream| { in to_tokens()
1373 if let Some(default) = &self.default { in to_tokens()
1418 let mut trailing_or_empty = true; in to_tokens()
1420 if let CapturedParam::Lifetime(_) = **param.value() { in to_tokens()
1426 if let CapturedParam::Ident(_) = **param.value() { in to_tokens()