Home
last modified time | relevance | path

Searched refs:Punctuated (Results 1 – 25 of 35) sorted by relevance

12

/external/rust/crates/syn/src/
Dpunctuated.rs46 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 …]
Dgenerics.rs2 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 …]
Dpath.rs2 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 …]
Dty.rs2 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 …]
Dparse_quote.rs115 use crate::punctuated::Punctuated;
132 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> { implementation
Dattr.rs2 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()
Dpat.rs2 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()
Dderive.rs2 use crate::punctuated::Punctuated;
74 pub variants: Punctuated<Variant, Token![,]>,
205 Punctuated<Variant, Token![,]>, in data_enum()
Ddata.rs2 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()
Dgen_helper.rs4 use crate::punctuated::{Pair, Punctuated};
24 impl<T, U> FoldHelper for Punctuated<T, U> { implementation
/external/rust/crates/syn/tests/
Dtest_iterators.rs1 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/
Dparse.rs8 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()
Dlib.rs35 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/
Dpat.rs1 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()
Dpath.rs4 punctuated::Punctuated,
28 let mut segments = Punctuated::new(); in parse_path()
Dfunc.rs3 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/
Dnames.rs7 use syn::punctuated::Punctuated;
41 lifetimes: Punctuated::new(), in new()
Dmod.rs38 use syn::punctuated::Punctuated;
156 pub lifetimes: Punctuated<Lifetime, Token![,]>,
165 pub args: Punctuated<Var, Token![,]>,
/external/rust/crates/serde_derive/src/internals/
Dast.rs7 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/
Dmod.rs7 use syn::punctuated::Punctuated;
108 impl<T, P> Debug for Lite<Punctuated<T, P>>
/external/rust/crates/syn/src/gen/
Dvisit_mut.rs8 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 …]
Dvisit.rs8 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/
Dutils.rs8 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/
Dnested.rs59 use syn::punctuated::Punctuated;
144 lifetimes: Punctuated::new(), in make_api()
/external/rust/crates/serde_derive/src/
Dbound.rs4 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()

12