/external/rust/crates/syn/src/ |
D | punctuated.rs | 47 pub struct Punctuated<T, P> { struct 52 impl<T, P> Punctuated<T, P> { implementation 56 Punctuated { in new() 65 Punctuated { in new() 197 self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p)) in pop() 296 let mut punctuated = Punctuated::new(); in parse_terminated_with() 354 let mut punctuated = Punctuated::new(); in parse_separated_nonempty_with() 372 impl<T, P> Clone for Punctuated<T, P> implementation 378 Punctuated { in clone() 387 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() 177 predicates: Punctuated::new(), in make_where_clause() 430 pub lifetimes: Punctuated<LifetimeDef, Token![,]>, 440 lifetimes: Punctuated::new(), in default() 452 bounds: Punctuated::new(), in new() 463 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() 134 pub args: Punctuated<GenericArgument, Token![,]>, 161 pub bounds: Punctuated<TypeParamBound, Token![+]>, 175 pub inputs: Punctuated<Type, Token![,]>, 365 let mut args = Punctuated::new(); in parse() 454 fn constraint_bounds(input: ParseStream) -> Result<Punctuated<TypeParamBound, Token![+]>> { in constraint_bounds() 455 let mut bounds = Punctuated::new(); in constraint_bounds() 510 let mut segments = Punctuated::new(); in parse_mod_style() [all …]
|
D | ty.rs | 2 use crate::punctuated::Punctuated; 117 pub inputs: Punctuated<BareFnArg, Token![,]>, 144 pub bounds: Punctuated<TypeParamBound, Token![+]>, 255 pub bounds: Punctuated<TypeParamBound, Token![+]>, 267 pub elems: Punctuated<Type, Token![,]>, 432 elems: Punctuated::new(), in ambig_ty() 445 let mut bounds = Punctuated::new(); in ambig_ty() 463 let mut elems = Punctuated::new(); in ambig_ty() 514 let mut bounds = Punctuated::new(); in ambig_ty() 594 let mut bounds = Punctuated::new(); in ambig_ty() [all …]
|
D | parse_quote.rs | 139 use crate::punctuated::Punctuated; 156 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> { implementation
|
D | attr.rs | 2 use crate::punctuated::Punctuated; 185 Pair::Punctuated(seg, punct) => { in parse_meta() 186 Pair::Punctuated(clone_ident_segment(seg), Token![::](punct.spans)) in parse_meta() 381 pub nested: Punctuated<NestedMeta, Token![,]>, 537 let mut segments = Punctuated::new(); in parse_meta_path()
|
D | pat.rs | 2 use crate::punctuated::Punctuated; 162 pub cases: Punctuated<Pat, Token![|]>, 229 pub elems: Punctuated<Pat, Token![,]>, 242 pub fields: Punctuated<FieldPat, Token![,]>, 255 pub elems: Punctuated<Pat, Token![,]>, 472 let mut fields = Punctuated::new(); in pat_struct() 601 let mut elems = Punctuated::new(); in pat_tuple() 700 let mut elems = Punctuated::new(); in pat_slice() 744 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()
|
/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() 53 let p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in may_dangle() 61 let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4); in may_dangle()
|
/external/rust/crates/derive_arbitrary/src/ |
D | container_attributes.rs | 3 parse::Error, punctuated::Punctuated, DeriveInput, Lit, Meta, MetaNameValue, NestedMeta, Token, 21 pub bounds: Option<Vec<Punctuated<TypeParam, Token![,]>>>, 55 .push(bound_str_lit.parse_with(Punctuated::parse_terminated)?); in from_derive_input()
|
/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/crates/async-trait/src/ |
D | bound.rs | 3 use syn::punctuated::Punctuated; 6 pub type Supertraits = Punctuated<TypeParamBound, Token![+]>;
|
/external/rust/crates/derive-getters/src/ |
D | dissolve.rs | 21 punctuated::Punctuated, 107 let types: Punctuated<Type, syn::Token![,]> = self.fields in emit() 109 .fold(Punctuated::new(), |mut p, field| { in emit()
|
/external/rust/crates/tracing-attributes/src/ |
D | attr.rs | 2 use syn::{punctuated::Punctuated, Expr, Ident, LitInt, LitStr, Path, Token}; 234 let names: Punctuated<Ident, Token![,]> = content.parse_terminated(Ident::parse_any)?; in parse() 285 pub(crate) struct Fields(pub(crate) Punctuated<Field, Token![,]>); 289 pub(crate) name: Punctuated<Ident, Token![.]>, 306 let fields: Punctuated<_, Token![,]> = content.parse_terminated(Field::parse)?; in parse() 327 let name = Punctuated::parse_separated_nonempty_with(input, Ident::parse_any)?; in parse()
|
/external/rust/cxx/syntax/ |
D | names.rs | 7 use syn::punctuated::Punctuated; 29 lifetimes: Punctuated::new(), in new()
|
/external/rust/crates/thiserror-impl/src/ |
D | generics.rs | 5 use syn::punctuated::Punctuated; 48 bounds: Map<String, (Set<String>, Punctuated<TokenStream, Token![+]>)>,
|
/external/rust/crates/clap_derive/src/ |
D | attr.rs | 12 punctuated::Punctuated, 49 attr.parse_args_with(Punctuated::<ClapAttr, Token![,]>::parse_terminated) in parse_all() 136 let method_args: Punctuated<_, Token![,]> = nested.parse_terminated(Expr::parse)?; in parse()
|
/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/src/gen/ |
D | visit_mut.rs | 8 use crate::punctuated::Punctuated; 801 for el in Punctuated::pairs_mut(&mut node.args) { in visit_angle_bracketed_generic_arguments_mut() 984 for el in Punctuated::pairs_mut(&mut node.lifetimes) { in visit_bound_lifetimes_mut() 1019 for el in Punctuated::pairs_mut(&mut node.bounds) { in visit_constraint_mut() 1051 for el in Punctuated::pairs_mut(&mut node.variants) { in visit_data_enum_mut() 1230 for el in Punctuated::pairs_mut(&mut node.elems) { in visit_expr_array_mut() 1350 for el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_call_mut() 1388 for el in Punctuated::pairs_mut(&mut node.inputs) { in visit_expr_closure_mut() 1557 for el in Punctuated::pairs_mut(&mut node.args) { in visit_expr_method_call_mut() 1655 for el in Punctuated::pairs_mut(&mut node.fields) { in visit_expr_struct_mut() [all …]
|
/external/rust/crates/syn/tests/debug/ |
D | mod.rs | 14 use syn::punctuated::Punctuated; 115 impl<T, P> Debug for Lite<Punctuated<T, P>>
|
/external/rust/crates/pin-project-internal/src/ |
D | utils.rs | 8 punctuated::Punctuated, 16 pub(crate) type Variants = Punctuated<Variant, Token![,]>; 72 let mut punct = Punctuated::new(); in insert_lifetime_and_bound() 226 let segments = mem::replace(&mut path.segments, Punctuated::new()); in self_to_qself()
|
/external/rust/crates/clap_derive/src/derives/ |
D | parser.rs | 21 self, punctuated::Punctuated, token::Comma, Data, DataStruct, DeriveInput, Field, Fields, 61 let fields = Punctuated::<Field, Comma>::new(); in derive_parser()
|