/third_party/rust/crates/syn/src/ |
D | punctuated.rs | 46 pub struct Punctuated<T, P> { struct 51 impl<T, P> Punctuated<T, P> { argument 54 Punctuated { in new() 186 self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p)) in pop() 291 let mut punctuated = Punctuated::new(); in parse_terminated_with() 343 let mut punctuated = Punctuated::new(); in parse_separated_nonempty_with() 361 impl<T, P> Clone for Punctuated<T, P> implementation 367 Punctuated { in clone() 381 impl<T, P> Eq for Punctuated<T, P> implementation 390 impl<T, P> PartialEq for Punctuated<T, P> implementation [all …]
|
D | generics.rs | 2 use crate::punctuated::{Iter, IterMut, Punctuated}; 22 pub params: Punctuated<GenericParam, Token![,]>, 57 pub bounds: Punctuated<Lifetime, Token![+]>, 68 pub bounds: Punctuated<TypeParamBound, Token![+]>, 92 params: Punctuated::new(), in default() 170 predicates: Punctuated::new(), in make_where_clause() 405 pub lifetimes: Punctuated<GenericParam, Token![,]>, 415 lifetimes: Punctuated::new(), in default() 427 bounds: Punctuated::new(), in new() 438 bounds: Punctuated::new(), in from() [all …]
|
D | path.rs | 2 use crate::punctuated::Punctuated; 9 pub segments: Punctuated<PathSegment, Token![::]>, 20 segments: Punctuated::new(), in from() 196 pub args: Punctuated<GenericArgument, Token![,]>, 232 pub bounds: Punctuated<TypeParamBound, Token![+]>, 243 pub inputs: Punctuated<Type, Token![,]>, 350 let mut bounds = Punctuated::new(); in parse() 435 let mut args = Punctuated::new(); in do_parse() 548 let mut segments = Punctuated::new(); in parse_mod_style() 580 let mut segments = Punctuated::new(); in parse_helper() [all …]
|
D | ty.rs | 2 use crate::punctuated::Punctuated; 104 pub inputs: Punctuated<BareFnArg, Token![,]>, 125 pub bounds: Punctuated<TypeParamBound, Token![+]>, 209 pub bounds: Punctuated<TypeParamBound, Token![+]>, 218 pub elems: Punctuated<Type, Token![,]>, 363 elems: Punctuated::new(), in ambig_ty() 376 let mut bounds = Punctuated::new(); in ambig_ty() 394 let mut elems = Punctuated::new(); in ambig_ty() 446 let mut bounds = Punctuated::new(); in ambig_ty() 495 let mut bounds = Punctuated::new(); in ambig_ty() [all …]
|
D | pat.rs | 2 use crate::punctuated::Punctuated; 115 pub cases: Punctuated<Pat, Token![|]>, 155 pub elems: Punctuated<Pat, Token![,]>, 167 pub fields: Punctuated<FieldPat, Token![,]>, 178 pub elems: Punctuated<Pat, Token![,]>, 190 pub elems: Punctuated<Pat, Token![,]>, 376 let mut cases = Punctuated::new(); in multi_pat_impl() 468 let mut elems = Punctuated::new(); in pat_tuple_struct() 492 let mut fields = Punctuated::new(); in pat_struct() 614 let mut elems = Punctuated::new(); in pat_paren_or_tuple() [all …]
|
D | gen_helper.rs | 3 use crate::punctuated::{Pair, Punctuated}; 22 impl<T, U> FoldHelper for Punctuated<T, U> { implementation
|
D | meta.rs | 7 use crate::punctuated::Punctuated; 406 let mut segments = Punctuated::new(); in parse_meta_path()
|
D | data.rs | 2 use crate::punctuated::Punctuated; 49 pub named: Punctuated<Field, Token![,]>, 58 pub unnamed: Punctuated<Field, Token![,]>, 110 Fields::Unit => Punctuated::<Field, ()>::new().into_iter(), in into_iter()
|
D | derive.rs | 2 use crate::punctuated::Punctuated; 48 pub variants: Punctuated<Variant, Token![,]>, 176 Punctuated<Variant, Token![,]>, in data_enum()
|
D | parse_quote.rs | 137 use crate::punctuated::Punctuated; 198 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> { implementation
|
/third_party/rust/crates/syn/tests/ |
D | test_iterators.rs | 3 use syn::punctuated::{Pair, Punctuated}; 22 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in pairs() 28 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in pairs() 40 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in iter() 46 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in iter() 55 let p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in may_dangle() 63 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in may_dangle()
|
D | test_parse_quote.rs | 4 use syn::punctuated::Punctuated; 115 let punctuated: Punctuated<Lit, Token![|]> = parse_quote!(true | true); in test_punctuated() 128 let punctuated: Punctuated<Lit, Token![|]> = parse_quote!(true | true |); in test_punctuated()
|
D | test_pat.rs | 9 use syn::punctuated::Punctuated; 105 elems: Punctuated::new(), in test_tuple_comma()
|
/third_party/rust/crates/syn/json/src/ |
D | lib.rs | 161 Punctuated(Punctuated), enumerator 182 pub struct Punctuated { struct
|
/third_party/rust/crates/cxx/syntax/ |
D | names.rs | 8 use syn::punctuated::Punctuated; 30 lifetimes: Punctuated::new(), in new()
|
D | mod.rs | 39 use syn::punctuated::Punctuated; 177 pub lifetimes: Punctuated<Lifetime, Token![,]>, 187 pub args: Punctuated<Var, Token![,]>,
|
/third_party/rust/crates/clap/clap_derive/src/ |
D | attr.rs | 10 punctuated::Punctuated, 44 attr.parse_args_with(Punctuated::<ClapAttr, Token![,]>::parse_terminated)? in parse_all() 129 let method_args: Punctuated<_, _> = nested.parse_terminated(Expr::parse, Token![,])?; in parse()
|
/third_party/rust/crates/syn/codegen/src/ |
D | visit.rs | 48 Type::Punctuated(p) => { in visit() 53 for el in Punctuated::pairs(#name) { in visit() 207 use crate::punctuated::Punctuated; in generate()
|
D | visit_mut.rs | 48 Type::Punctuated(p) => { in visit() 53 for mut el in Punctuated::pairs_mut(#name) { in visit() 203 use crate::punctuated::Punctuated; in generate()
|
D | snapshot.rs | 29 Type::Punctuated(ty) => { in rust_type() 32 quote!(syn::punctuated::Punctuated<#element, #punct>) in rust_type() 59 Type::Syn(_) | Type::Std(_) | Type::Punctuated(_) | Type::Option(_) | Type::Vec(_) => true, in is_printable() 268 } else if let Type::Vec(_) | Type::Punctuated(_) = ty { in expand_impl_body()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | ast.rs | 4 use syn::punctuated::Punctuated; 141 variants: &'a Punctuated<syn::Variant, Token![,]>, in enum_from_ast() 199 fields: &'a Punctuated<syn::Field, Token![,]>, in fields_from_ast()
|
/third_party/rust/crates/syn/src/gen/ |
D | visit_mut.rs | 7 use crate::punctuated::Punctuated; 949 for mut el in Punctuated::pairs_mut(&mut node.args) { in visit_angle_bracketed_generic_arguments_mut() 1166 for mut el in Punctuated::pairs_mut(&mut node.lifetimes) { in visit_bound_lifetimes_mut() 1201 for mut el in Punctuated::pairs_mut(&mut node.bounds) { in visit_constraint_mut() 1232 for mut el in Punctuated::pairs_mut(&mut node.variants) { in visit_data_enum_mut() 1406 for mut el in Punctuated::pairs_mut(&mut node.elems) { in visit_expr_array_mut() 1505 for mut el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_call_mut() 1540 for mut el in Punctuated::pairs_mut(&mut node.inputs) { in visit_expr_closure_mut() 1741 for mut el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_method_call_mut() 1844 for mut el in Punctuated::pairs_mut(&mut node.fields) { in visit_expr_struct_mut() [all …]
|
/third_party/rust/crates/syn/tests/debug/ |
D | mod.rs | 14 use syn::punctuated::Punctuated; 115 impl<T, P> Debug for Lite<Punctuated<T, P>>
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | parser.rs | 20 self, punctuated::Punctuated, token::Comma, Data, DataStruct, DeriveInput, Field, Fields, 55 let fields = Punctuated::<Field, Comma>::new(); in derive_parser()
|
/third_party/rust/crates/syn/examples/trace-var/trace-var/src/ |
D | lib.rs | 6 use syn::punctuated::Punctuated; 24 let vars = Punctuated::<Ident, Token![,]>::parse_terminated(input)?; in parse()
|