Home
last modified time | relevance | path

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

12

/third_party/rust/crates/syn/src/
Dpunctuated.rs46 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 …]
Dgenerics.rs2 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 …]
Dpath.rs2 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 …]
Dty.rs2 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 …]
Dpat.rs2 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 …]
Dgen_helper.rs3 use crate::punctuated::{Pair, Punctuated};
22 impl<T, U> FoldHelper for Punctuated<T, U> { implementation
Dmeta.rs7 use crate::punctuated::Punctuated;
406 let mut segments = Punctuated::new(); in parse_meta_path()
Ddata.rs2 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()
Dderive.rs2 use crate::punctuated::Punctuated;
48 pub variants: Punctuated<Variant, Token![,]>,
176 Punctuated<Variant, Token![,]>, in data_enum()
Dparse_quote.rs137 use crate::punctuated::Punctuated;
198 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> { implementation
/third_party/rust/crates/syn/tests/
Dtest_iterators.rs3 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()
Dtest_parse_quote.rs4 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()
Dtest_pat.rs9 use syn::punctuated::Punctuated;
105 elems: Punctuated::new(), in test_tuple_comma()
/third_party/rust/crates/syn/json/src/
Dlib.rs161 Punctuated(Punctuated), enumerator
182 pub struct Punctuated { struct
/third_party/rust/crates/cxx/syntax/
Dnames.rs8 use syn::punctuated::Punctuated;
30 lifetimes: Punctuated::new(), in new()
Dmod.rs39 use syn::punctuated::Punctuated;
177 pub lifetimes: Punctuated<Lifetime, Token![,]>,
187 pub args: Punctuated<Var, Token![,]>,
/third_party/rust/crates/clap/clap_derive/src/
Dattr.rs10 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/
Dvisit.rs48 Type::Punctuated(p) => { in visit()
53 for el in Punctuated::pairs(#name) { in visit()
207 use crate::punctuated::Punctuated; in generate()
Dvisit_mut.rs48 Type::Punctuated(p) => { in visit()
53 for mut el in Punctuated::pairs_mut(#name) { in visit()
203 use crate::punctuated::Punctuated; in generate()
Dsnapshot.rs29 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/
Dast.rs4 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/
Dvisit_mut.rs7 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/
Dmod.rs14 use syn::punctuated::Punctuated;
115 impl<T, P> Debug for Lite<Punctuated<T, P>>
/third_party/rust/crates/clap/clap_derive/src/derives/
Dparser.rs20 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/
Dlib.rs6 use syn::punctuated::Punctuated;
24 let vars = Punctuated::<Ident, Token![,]>::parse_terminated(input)?; in parse()

12