/third_party/rust/crates/syn/src/ |
D | path.rs | 106 pub enum GenericArgument { 134 pub args: Punctuated<GenericArgument, Token![,]>, 226 impl Parse for GenericArgument { implementation 229 return Ok(GenericArgument::Lifetime(input.parse()?)); in parse() 260 return Ok(GenericArgument::Binding(Binding { in parse() 270 return Ok(GenericArgument::Constraint(input.parse()?)); in parse() 275 return const_argument(input).map(GenericArgument::Const); in parse() 309 return Ok(GenericArgument::Type(Type::Verbatim(verbatim))); in parse() 313 Ok(GenericArgument::Type(argument)) in parse() 725 impl ToTokens for GenericArgument { implementation [all …]
|
D | lib.rs | 425 AngleBracketedGenericArguments, Binding, Constraint, GenericArgument,
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 183 GenericArgument::Type(arg) => self.visit_type_mut(arg), in visit_path_arguments_mut() 184 GenericArgument::Binding(arg) => self.visit_type_mut(&mut arg.ty), in visit_path_arguments_mut() 185 GenericArgument::Lifetime(_) in visit_path_arguments_mut() 186 | GenericArgument::Constraint(_) in visit_path_arguments_mut() 187 | GenericArgument::Const(_) => {} in visit_path_arguments_mut()
|
D | attr.rs | 1746 (syn::GenericArgument::Lifetime(_), syn::GenericArgument::Type(arg)) => elem(arg), in is_cow() 1773 syn::GenericArgument::Type(arg) => elem(arg), in is_option() 1883 syn::GenericArgument::Lifetime(lifetime) => { in collect_lifetimes() 1886 syn::GenericArgument::Type(ty) => { in collect_lifetimes() 1889 syn::GenericArgument::Binding(binding) => { in collect_lifetimes() 1892 syn::GenericArgument::Constraint(_) in collect_lifetimes() 1893 | syn::GenericArgument::Const(_) => {} in collect_lifetimes()
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | bound.rs | 204 syn::GenericArgument::Type(arg) => self.visit_type(arg), in with_bound() 205 syn::GenericArgument::Binding(arg) => self.visit_type(&arg.ty), in with_bound() 206 syn::GenericArgument::Lifetime(_) in with_bound() 207 | syn::GenericArgument::Constraint(_) in with_bound() 208 | syn::GenericArgument::Const(_) => {} in with_bound() 387 syn::GenericArgument::Type(syn::Type::Path(syn::TypePath { in type_of_item() 393 syn::GenericArgument::Lifetime(param.lifetime.clone()) in type_of_item()
|
/third_party/rust/crates/syn/tests/ |
D | test_precedence.rs | 352 use syn::{token, Expr, ExprParen, GenericArgument, GenericMethodArgument, Pat, Stmt, Type}; in syn_brackets() 370 fn fold_generic_argument(&mut self, arg: GenericArgument) -> GenericArgument { in syn_brackets() argument 372 GenericArgument::Const(arg) => GenericArgument::Const(match arg { in syn_brackets()
|
/third_party/rust/crates/clap/clap_derive/src/utils/ |
D | ty.rs | 6 spanned::Spanned, GenericArgument, Path, PathArguments, PathArguments::AngleBracketed, 104 if let GenericArgument::Type(ty) = genneric { in subty_if()
|
/third_party/rust/crates/cxx/syntax/ |
D | parse.rs | 19 GenericArgument, GenericParam, Generics, Ident, ItemEnum, ItemImpl, ItemStruct, Lit, LitStr, 1228 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1238 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1248 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1258 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1268 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1278 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1288 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_type_path() 1303 if let GenericArgument::Lifetime(param) = param { in parse_type_path() 1455 if let GenericArgument::Type(arg) = &generic.args[0] { in parse_return_type()
|
/third_party/rust/crates/syn/src/gen/ |
D | clone.rs | 908 impl Clone for GenericArgument { implementation 911 GenericArgument::Lifetime(v0) => GenericArgument::Lifetime(v0.clone()), in clone() 912 GenericArgument::Type(v0) => GenericArgument::Type(v0.clone()), in clone() 913 GenericArgument::Const(v0) => GenericArgument::Const(v0.clone()), in clone() 914 GenericArgument::Binding(v0) => GenericArgument::Binding(v0.clone()), in clone() 915 GenericArgument::Constraint(v0) => GenericArgument::Constraint(v0.clone()), in clone()
|
D | eq.rs | 869 impl Eq for GenericArgument {} implementation 872 impl PartialEq for GenericArgument { implementation 875 (GenericArgument::Lifetime(self0), GenericArgument::Lifetime(other0)) => { in eq() 878 (GenericArgument::Type(self0), GenericArgument::Type(other0)) => { in eq() 881 (GenericArgument::Const(self0), GenericArgument::Const(other0)) => { in eq() 884 (GenericArgument::Binding(self0), GenericArgument::Binding(other0)) => { in eq() 887 (GenericArgument::Constraint(self0), GenericArgument::Constraint(other0)) => { in eq()
|
D | fold.rs | 316 fn fold_generic_argument(&mut self, i: GenericArgument) -> GenericArgument { in fold_generic_argument() argument 1779 pub fn fold_generic_argument<F>(f: &mut F, node: GenericArgument) -> GenericArgument in fold_generic_argument() 1784 GenericArgument::Lifetime(_binding_0) => { in fold_generic_argument() 1785 GenericArgument::Lifetime(f.fold_lifetime(_binding_0)) in fold_generic_argument() 1787 GenericArgument::Type(_binding_0) => { in fold_generic_argument() 1788 GenericArgument::Type(f.fold_type(_binding_0)) in fold_generic_argument() 1790 GenericArgument::Const(_binding_0) => { in fold_generic_argument() 1791 GenericArgument::Const(f.fold_expr(_binding_0)) in fold_generic_argument() 1793 GenericArgument::Binding(_binding_0) => { in fold_generic_argument() 1794 GenericArgument::Binding(f.fold_binding(_binding_0)) in fold_generic_argument() [all …]
|
D | hash.rs | 1173 impl Hash for GenericArgument { implementation 1179 GenericArgument::Lifetime(v0) => { in hash() 1183 GenericArgument::Type(v0) => { in hash() 1187 GenericArgument::Const(v0) => { in hash() 1191 GenericArgument::Binding(v0) => { in hash() 1195 GenericArgument::Constraint(v0) => { in hash()
|
D | visit_mut.rs | 319 fn visit_generic_argument_mut(&mut self, i: &mut GenericArgument) { in visit_generic_argument_mut() argument 1967 pub fn visit_generic_argument_mut<V>(v: &mut V, node: &mut GenericArgument) in visit_generic_argument_mut() 1972 GenericArgument::Lifetime(_binding_0) => { in visit_generic_argument_mut() 1975 GenericArgument::Type(_binding_0) => { in visit_generic_argument_mut() 1978 GenericArgument::Const(_binding_0) => { in visit_generic_argument_mut() 1981 GenericArgument::Binding(_binding_0) => { in visit_generic_argument_mut() 1984 GenericArgument::Constraint(_binding_0) => { in visit_generic_argument_mut()
|
D | debug.rs | 1258 impl Debug for GenericArgument { implementation 1261 GenericArgument::Lifetime(v0) => { in fmt() 1266 GenericArgument::Type(v0) => { in fmt() 1271 GenericArgument::Const(v0) => { in fmt() 1276 GenericArgument::Binding(v0) => { in fmt() 1281 GenericArgument::Constraint(v0) => { in fmt()
|
D | visit.rs | 318 fn visit_generic_argument(&mut self, i: &'ast GenericArgument) { in visit_generic_argument() argument 1966 pub fn visit_generic_argument<'ast, V>(v: &mut V, node: &'ast GenericArgument) in visit_generic_argument() 1971 GenericArgument::Lifetime(_binding_0) => { in visit_generic_argument() 1974 GenericArgument::Type(_binding_0) => { in visit_generic_argument() 1977 GenericArgument::Const(_binding_0) => { in visit_generic_argument() 1980 GenericArgument::Binding(_binding_0) => { in visit_generic_argument() 1983 GenericArgument::Constraint(_binding_0) => { in visit_generic_argument()
|
/third_party/rust/crates/syn/codegen/src/ |
D | parse.rs | 10 parse_quote, Attribute, Data, DataEnum, DataStruct, DeriveInput, Fields, GenericArgument, 242 GenericArgument::Type(ref ty) => ty, in first_arg() 258 GenericArgument::Type(ref ty) => ty, in last_arg()
|
/third_party/rust/crates/syn/tests/debug/ |
D | gen.rs | 2200 impl Debug for Lite<syn::GenericArgument> { 2204 syn::GenericArgument::Lifetime(_val) => { in fmt() 2211 syn::GenericArgument::Type(_val) => { in fmt() 2218 syn::GenericArgument::Const(_val) => { in fmt() 2225 syn::GenericArgument::Binding(_val) => { in fmt() 2232 syn::GenericArgument::Constraint(_val) => { in fmt()
|