/external/rust/crates/syn/src/ |
D | generics.rs | 17 pub params: Punctuated<GenericParam, Token![,]>, 36 pub enum GenericParam { 182 pub struct TypeParams<'a>(Iter<'a, GenericParam>); 192 if let GenericParam::Type(type_param) = next { in next() 200 pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>); 210 if let GenericParam::Type(type_param) = next { in next() 218 pub struct Lifetimes<'a>(Iter<'a, GenericParam>); 228 if let GenericParam::Lifetime(lifetime) = next { in next() 236 pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>); 246 if let GenericParam::Lifetime(lifetime) = next { in next() [all …]
|
D | lib.rs | 352 BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeDef, PredicateEq,
|
/external/rust/crates/zerocopy-derive/src/ |
D | lib.rs | 16 DeriveInput, Error, GenericParam, Ident, Lifetime, Type, TypePath, 463 struct FromTypeParamVisit<'a, 'b>(&'a Punctuated<GenericParam, Comma>, &'b mut bool); in impl_block() 469 if let GenericParam::Lifetime(param) = param { in impl_block() 482 if let GenericParam::Type(param) = param { in impl_block() 525 GenericParam::Type(ty) => ty.default = None, in impl_block() 526 GenericParam::Const(cnst) => cnst.default = None, in impl_block() 527 GenericParam::Lifetime(_) => {} in impl_block() 533 GenericParam::Type(ty) => { in impl_block() 537 GenericParam::Lifetime(l) => quote!(#l), in impl_block() 538 GenericParam::Const(cnst) => quote!(#cnst), in impl_block()
|
/external/rust/crates/serde_derive/src/ |
D | bound.rs | 20 syn::GenericParam::Type(param) => syn::GenericParam::Type(syn::TypeParam { in without_defaults() 344 let params = Some(syn::GenericParam::Lifetime(def)) in with_lifetime_bound() 348 syn::GenericParam::Lifetime(param) => { in with_lifetime_bound() 351 syn::GenericParam::Type(param) => { in with_lifetime_bound() 356 syn::GenericParam::Const(_) => {} in with_lifetime_bound() 384 syn::GenericParam::Type(param) => { in type_of_item() 390 syn::GenericParam::Lifetime(param) => { in type_of_item() 393 syn::GenericParam::Const(_) => { in type_of_item()
|
D | de.rs | 3011 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3030 syn::GenericParam::Lifetime(param) => { in to_tokens() 3033 syn::GenericParam::Type(param) => { in to_tokens() 3038 syn::GenericParam::Const(_) => {} in to_tokens() 3041 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime)) in to_tokens() 3046 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3077 generics.params = Some(syn::GenericParam::Lifetime(def)) in to_tokens() 3091 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime())) in to_tokens() 3103 generics.params = Some(syn::GenericParam::Lifetime(def)) in to_tokens()
|
/external/rust/crates/serde_derive/src/internals/ |
D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 215 GenericParam::Type(param) => { in visit_generics_mut() 220 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut()
|
/external/rust/crates/synstructure/src/ |
D | lib.rs | 164 FieldsNamed, FieldsUnnamed, GenericParam, Generics, Ident, PredicateType, Result, Token, 240 if let GenericParam::Type(tparam) = param { in fetch_generics() 270 (GenericParam::Type(otp), GenericParam::Type(tp)) => { in merge_generics() 283 (GenericParam::Lifetime(olp), GenericParam::Lifetime(lp)) => { in merge_generics() 462 if let GenericParam::Type(tparam) = i { in get_ty_params() 944 extra_impl: Vec<GenericParam>, 1543 pub fn add_impl_generic(&mut self, param: GenericParam) -> &mut Self { in add_impl_generic()
|
/external/rust/crates/derive_arbitrary/src/ |
D | lib.rs | 50 .push(GenericParam::Lifetime(lifetime_with_bounds)); in expand_derive_arbitrary() 80 if let GenericParam::Lifetime(lifetime_def) = param { in build_arbitrary_lifetime() 99 if let GenericParam::Type(type_param) = param { in apply_trait_bounds() 138 if let GenericParam::Type(type_param) = param { in add_trait_bounds()
|
/external/rust/crates/async-trait/src/ |
D | expand.rs | 12 parse_quote, parse_quote_spanned, Attribute, Block, FnArg, GenericArgument, GenericParam, 45 if let GenericParam::Lifetime(param) = param { in lifetimes() 180 GenericParam::Type(param) => { in transform_sig() 191 GenericParam::Lifetime(param) => { in transform_sig() 202 GenericParam::Const(_) => {} in transform_sig()
|
/external/rust/cxx/syntax/ |
D | parse.rs | 19 GenericArgument, GenericParam, Generics, Ident, ItemEnum, ItemImpl, ItemStruct, Lit, LitStr, 92 GenericParam::Lifetime(param) => { in parse_struct() 103 GenericParam::Type(param) => { in parse_struct() 110 GenericParam::Const(param) => { in parse_struct() 552 GenericParam::Lifetime(lifetime) => !lifetime.bounds.is_empty(), in parse_extern_fn() 553 GenericParam::Type(_) | GenericParam::Const(_) => true, in parse_extern_fn() 764 GenericParam::Lifetime(param) => { in parse_extern_verbatim_type() 775 GenericParam::Type(param) => { in parse_extern_verbatim_type() 782 GenericParam::Const(param) => { in parse_extern_verbatim_type() 1034 GenericParam::Lifetime(def) if def.bounds.is_empty() => { in parse_impl()
|
D | check.rs | 11 use syn::{GenericParam, Generics, Lifetime}; 631 if let GenericParam::Lifetime(def) = generic_param { in check_generics()
|
/external/rust/crates/syn/src/gen/ |
D | clone.rs | 931 impl Clone for GenericParam { implementation 934 GenericParam::Type(v0) => GenericParam::Type(v0.clone()), in clone() 935 GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), in clone() 936 GenericParam::Const(v0) => GenericParam::Const(v0.clone()), in clone()
|
D | eq.rs | 915 impl Eq for GenericParam {} implementation 918 impl PartialEq for GenericParam { implementation 921 (GenericParam::Type(self0), GenericParam::Type(other0)) => self0 == other0, in eq() 922 (GenericParam::Lifetime(self0), GenericParam::Lifetime(other0)) => { in eq() 925 (GenericParam::Const(self0), GenericParam::Const(other0)) => self0 == other0, in eq()
|
D | fold.rs | 327 fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam { in fold_generic_param() argument 1819 pub fn fold_generic_param<F>(f: &mut F, node: GenericParam) -> GenericParam in fold_generic_param() 1824 GenericParam::Type(_binding_0) => { in fold_generic_param() 1825 GenericParam::Type(f.fold_type_param(_binding_0)) in fold_generic_param() 1827 GenericParam::Lifetime(_binding_0) => { in fold_generic_param() 1828 GenericParam::Lifetime(f.fold_lifetime_def(_binding_0)) in fold_generic_param() 1830 GenericParam::Const(_binding_0) => { in fold_generic_param() 1831 GenericParam::Const(f.fold_const_param(_binding_0)) in fold_generic_param()
|
D | hash.rs | 1223 impl Hash for GenericParam { implementation 1229 GenericParam::Type(v0) => { in hash() 1233 GenericParam::Lifetime(v0) => { in hash() 1237 GenericParam::Const(v0) => { in hash()
|
D | visit_mut.rs | 327 fn visit_generic_param_mut(&mut self, i: &mut GenericParam) { in visit_generic_param_mut() argument 2004 pub fn visit_generic_param_mut<V>(v: &mut V, node: &mut GenericParam) in visit_generic_param_mut() 2009 GenericParam::Type(_binding_0) => { in visit_generic_param_mut() 2012 GenericParam::Lifetime(_binding_0) => { in visit_generic_param_mut() 2015 GenericParam::Const(_binding_0) => { in visit_generic_param_mut()
|
D | debug.rs | 1309 impl Debug for GenericParam { implementation 1312 GenericParam::Type(v0) => { in fmt() 1317 GenericParam::Lifetime(v0) => { in fmt() 1322 GenericParam::Const(v0) => { in fmt()
|
D | visit.rs | 326 fn visit_generic_param(&mut self, i: &'ast GenericParam) { in visit_generic_param() argument 2006 pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast GenericParam) in visit_generic_param() 2011 GenericParam::Type(_binding_0) => { in visit_generic_param() 2014 GenericParam::Lifetime(_binding_0) => { in visit_generic_param() 2017 GenericParam::Const(_binding_0) => { in visit_generic_param()
|
/external/rust/crates/syn/tests/common/ |
D | eq.rs | 54 use rustc_ast::ast::GenericParam; 429 spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind !colon_span);
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 2263 impl Debug for Lite<syn::GenericParam> { 2267 syn::GenericParam::Type(_val) => { in fmt() 2274 syn::GenericParam::Lifetime(_val) => { in fmt() 2281 syn::GenericParam::Const(_val) => { in fmt()
|