/external/rust/crates/syn/src/ |
D | punctuated.rs | 46 pub struct Punctuated<T, P> { struct 51 impl<T, P> Punctuated<T, P> { impl 55 Punctuated { in new() 64 Punctuated { in new() 196 self.inner.pop().map(|(t, d)| Pair::Punctuated(t, d)) in pop() 295 let mut punctuated = Punctuated::new(); in parse_terminated_with() 353 let mut punctuated = Punctuated::new(); in parse_separated_nonempty_with() 371 impl<T, P> Clone for Punctuated<T, P> implementation 377 Punctuated { in clone() 386 impl<T, P> Eq for Punctuated<T, P> implementation [all …]
|
D | generics.rs | 2 use crate::punctuated::{Iter, IterMut, Punctuated}; 17 pub params: Punctuated<GenericParam, Token![,]>, 58 pub bounds: Punctuated<TypeParamBound, Token![+]>, 74 pub bounds: Punctuated<Lifetime, Token![+]>, 99 params: Punctuated::new(), in default() 179 predicates: Punctuated::new(), in make_where_clause() 437 pub lifetimes: Punctuated<LifetimeDef, Token![,]>, 447 lifetimes: Punctuated::new(), in default() 459 bounds: Punctuated::new(), in new() 470 bounds: Punctuated::new(), in from() [all …]
|
D | path.rs | 2 use crate::punctuated::Punctuated; 12 pub segments: Punctuated<PathSegment, Token![::]>, 23 segments: Punctuated::new(), in from() 135 pub args: Punctuated<GenericArgument, Token![,]>, 162 pub bounds: Punctuated<TypeParamBound, Token![+]>, 176 pub inputs: Punctuated<Type, Token![,]>, 323 let mut args = Punctuated::new(); in parse() 412 fn constraint_bounds(input: ParseStream) -> Result<Punctuated<TypeParamBound, Token![+]>> { in constraint_bounds() 413 let mut bounds = Punctuated::new(); in constraint_bounds() 468 let mut segments = Punctuated::new(); in parse_mod_style() [all …]
|
D | ty.rs | 2 use crate::punctuated::Punctuated; 120 pub inputs: Punctuated<BareFnArg, Token![,]>, 147 pub bounds: Punctuated<TypeParamBound, Token![+]>, 258 pub bounds: Punctuated<TypeParamBound, Token![+]>, 270 pub elems: Punctuated<Type, Token![,]>, 427 elems: Punctuated::new(), in ambig_ty() 440 let mut bounds = Punctuated::new(); in ambig_ty() 458 let mut elems = Punctuated::new(); in ambig_ty() 509 let mut bounds = Punctuated::new(); in ambig_ty() 587 let mut bounds = Punctuated::new(); in ambig_ty() [all …]
|
D | parse_quote.rs | 115 use crate::punctuated::Punctuated; 132 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> { implementation
|
D | attr.rs | 2 use crate::punctuated::Punctuated; 184 Pair::Punctuated(seg, punct) => { in parse_meta() 185 Pair::Punctuated(clone_ident_segment(seg), Token![::](punct.spans)) in parse_meta() 382 pub nested: Punctuated<NestedMeta, Token![,]>, 545 let mut segments = Punctuated::new(); in parse_meta_path()
|
D | pat.rs | 2 use crate::punctuated::Punctuated; 165 pub cases: Punctuated<Pat, Token![|]>, 232 pub elems: Punctuated<Pat, Token![,]>, 245 pub fields: Punctuated<FieldPat, Token![,]>, 258 pub elems: Punctuated<Pat, Token![,]>, 477 let mut fields = Punctuated::new(); in pat_struct() 603 let mut elems = Punctuated::new(); in pat_tuple() 702 let mut elems = Punctuated::new(); in pat_slice() 746 let mut cases = Punctuated::new(); in multi_pat_impl()
|
D | derive.rs | 2 use crate::punctuated::Punctuated; 74 pub variants: Punctuated<Variant, Token![,]>, 205 Punctuated<Variant, Token![,]>, in data_enum()
|
D | data.rs | 2 use crate::punctuated::Punctuated; 59 pub named: Punctuated<Field, Token![,]>, 71 pub unnamed: Punctuated<Field, Token![,]>, 123 Fields::Unit => Punctuated::<Field, ()>::new().into_iter(), in into_iter()
|
D | gen_helper.rs | 4 use crate::punctuated::{Pair, Punctuated}; 24 impl<T, U> FoldHelper for Punctuated<T, U> { implementation
|
/external/rust/crates/syn/tests/ |
D | test_iterators.rs | 1 use syn::punctuated::{Pair, Punctuated}; 20 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in pairs() 26 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in pairs() 38 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in iter() 44 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in iter()
|
/external/rust/crates/structopt-derive/src/ |
D | parse.rs | 8 punctuated::Punctuated, 127 let parser_specs: Punctuated<ParserSpec, Token![,]> = in parse() 159 let method_args: Punctuated<_, Token![,]> = in parse() 221 let do_parse = move || -> Result<(Ident, Punctuated<Expr, Token![,]>), syn::Error> { in raw_method_suggestion() 225 let exprs = val.parse_with(Punctuated::<Expr, Token![,]>::parse_terminated)?; in raw_method_suggestion() 268 attr.parse_args_with(Punctuated::<StructOptAttr, Token![,]>::parse_terminated) in parse_structopt_attributes()
|
D | lib.rs | 35 use syn::{punctuated::Punctuated, spanned::Spanned, token::Comma, *}; 65 fields: &Punctuated<Field, Comma>, in gen_augmentation() 244 fn gen_constructor(fields: &Punctuated<Field, Comma>, parent_attribute: &Attrs) -> TokenStream { in gen_constructor() 390 fields: &Punctuated<Field, Comma>, in gen_from_clap() 438 fn gen_augment_clap(fields: &Punctuated<Field, Comma>, parent_attribute: &Attrs) -> TokenStream { in gen_augment_clap() 469 variants: &Punctuated<Variant, Comma>, in gen_augment_clap_enum() 574 variants: &Punctuated<Variant, Comma>, in gen_from_subcommand() 757 fields: &Punctuated<Field, Comma>, in impl_structopt_for_struct() 811 variants: &Punctuated<Variant, Comma>, in impl_structopt_for_enum()
|
/external/rust/crates/syn-mid/src/ |
D | pat.rs | 1 use syn::{punctuated::Punctuated, token, Attribute, Ident, Member, Path, Token, Type}; 76 pub fields: Punctuated<FieldPat, Token![,]>, 86 pub elems: Punctuated<Pat, Token![,]>, 136 punctuated::Punctuated, 217 let mut fields = Punctuated::new(); in pat_struct() 270 let mut elems = Punctuated::new(); in pat_tuple()
|
D | path.rs | 4 punctuated::Punctuated, 28 let mut segments = Punctuated::new(); in parse_path()
|
D | func.rs | 3 punctuated::Punctuated, token, Abi, Attribute, Generics, Ident, Lifetime, ReturnType, Token, 41 pub inputs: Punctuated<FnArg, Token![,]>, 190 use syn::{punctuated::Punctuated, Token, Type}; 202 fn has_variadic(inputs: &Punctuated<FnArg, Token![,]>) -> bool { in has_variadic()
|
/external/rust/cxx/syntax/ |
D | names.rs | 7 use syn::punctuated::Punctuated; 41 lifetimes: Punctuated::new(), in new()
|
D | mod.rs | 38 use syn::punctuated::Punctuated; 156 pub lifetimes: Punctuated<Lifetime, Token![,]>, 165 pub args: Punctuated<Var, Token![,]>,
|
/external/rust/crates/serde_derive/src/internals/ |
D | ast.rs | 7 use syn::punctuated::Punctuated; 140 variants: &'a Punctuated<syn::Variant, Token![,]>, in enum_from_ast() 185 fields: &'a Punctuated<syn::Field, Token![,]>, in fields_from_ast()
|
/external/rust/crates/syn/tests/debug/ |
D | mod.rs | 7 use syn::punctuated::Punctuated; 108 impl<T, P> Debug for Lite<Punctuated<T, P>>
|
/external/rust/crates/syn/src/gen/ |
D | visit_mut.rs | 8 use crate::punctuated::Punctuated; 797 for el in Punctuated::pairs_mut(&mut node.args) { in visit_angle_bracketed_generic_arguments_mut() 980 for el in Punctuated::pairs_mut(&mut node.lifetimes) { in visit_bound_lifetimes_mut() 1015 for el in Punctuated::pairs_mut(&mut node.bounds) { in visit_constraint_mut() 1047 for el in Punctuated::pairs_mut(&mut node.variants) { in visit_data_enum_mut() 1225 for el in Punctuated::pairs_mut(&mut node.elems) { in visit_expr_array_mut() 1345 for el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_call_mut() 1383 for el in Punctuated::pairs_mut(&mut node.inputs) { in visit_expr_closure_mut() 1552 for el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_method_call_mut() 1650 for el in Punctuated::pairs_mut(&mut node.fields) { in visit_expr_struct_mut() [all …]
|
D | visit.rs | 8 use crate::punctuated::Punctuated; 793 for el in Punctuated::pairs(&node.args) { in visit_angle_bracketed_generic_arguments() 976 for el in Punctuated::pairs(&node.lifetimes) { in visit_bound_lifetimes() 1011 for el in Punctuated::pairs(&node.bounds) { in visit_constraint() 1043 for el in Punctuated::pairs(&node.variants) { in visit_data_enum() 1221 for el in Punctuated::pairs(&node.elems) { in visit_expr_array() 1341 for el in Punctuated::pairs(&node.args) { in visit_expr_call() 1379 for el in Punctuated::pairs(&node.inputs) { in visit_expr_closure() 1548 for el in Punctuated::pairs(&node.args) { in visit_expr_method_call() 1646 for el in Punctuated::pairs(&node.fields) { in visit_expr_struct() [all …]
|
/external/rust/crates/pin-project-internal/src/ |
D | utils.rs | 8 punctuated::Punctuated, 16 pub(crate) type Variants = Punctuated<Variant, Token![,]>; 66 let mut punct = Punctuated::new(); in insert_lifetime_and_bound() 214 let segments = mem::replace(&mut path.segments, Punctuated::new()); in self_to_qself()
|
/external/rust/cxx/gen/src/ |
D | nested.rs | 59 use syn::punctuated::Punctuated; 144 lifetimes: Punctuated::new(), in make_api()
|
/external/rust/crates/serde_derive/src/ |
D | bound.rs | 4 use syn::punctuated::{Pair, Punctuated}; 118 if let Some(Pair::Punctuated(t, _)) = ty.path.segments.pairs().next() { in with_bound() 343 bounds: Punctuated::new(), in with_lifetime_bound()
|