/external/rust/crates/syn/src/ |
D | generics.rs | 17 pub params: Punctuated<GenericParam, Token![,]>, 36 pub enum GenericParam { 189 pub struct TypeParams<'a>(Iter<'a, GenericParam>); 199 if let GenericParam::Type(type_param) = next { in next() 207 pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>); 217 if let GenericParam::Type(type_param) = next { in next() 225 pub struct Lifetimes<'a>(Iter<'a, GenericParam>); 235 if let GenericParam::Lifetime(lifetime) = next { in next() 243 pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>); 253 if let GenericParam::Lifetime(lifetime) = next { in next() [all …]
|
D | lib.rs | 360 BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeDef, PredicateEq,
|
/external/rust/crates/serde_derive/src/ |
D | bound.rs | 20 syn::GenericParam::Type(param) => syn::GenericParam::Type(syn::TypeParam { in without_defaults() 346 let params = Some(syn::GenericParam::Lifetime(def)) in with_lifetime_bound() 350 syn::GenericParam::Lifetime(param) => { in with_lifetime_bound() 353 syn::GenericParam::Type(param) => { in with_lifetime_bound() 358 syn::GenericParam::Const(_) => {} in with_lifetime_bound() 386 syn::GenericParam::Type(param) => { in type_of_item() 392 syn::GenericParam::Lifetime(param) => { in type_of_item() 395 syn::GenericParam::Const(_) => { in type_of_item()
|
D | de.rs | 2979 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 2998 syn::GenericParam::Lifetime(param) => { in to_tokens() 3001 syn::GenericParam::Type(param) => { in to_tokens() 3006 syn::GenericParam::Const(_) => {} in to_tokens() 3009 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime)) in to_tokens() 3014 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3045 generics.params = Some(syn::GenericParam::Lifetime(def)) in to_tokens() 3059 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime())) in to_tokens() 3071 generics.params = Some(syn::GenericParam::Lifetime(def)) in to_tokens()
|
/external/rust/crates/async-trait/src/ |
D | expand.rs | 10 parse_quote, Attribute, Block, FnArg, GenericParam, Generics, Ident, ImplItem, Lifetime, Pat, 43 fn lifetimes<'a>(&'a self, used: &'a [Lifetime]) -> impl Iterator<Item = &'a GenericParam> { in lifetimes() 49 if let GenericParam::Lifetime(param) = param { in lifetimes() 192 GenericParam::Type(param) => { in transform_sig() 199 GenericParam::Lifetime(param) => { in transform_sig() 206 GenericParam::Const(_) => {} in transform_sig()
|
/external/rust/crates/serde_derive/src/internals/ |
D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 217 GenericParam::Type(param) => { in visit_generics_mut() 222 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut()
|
/external/rust/crates/derive_arbitrary/src/ |
D | lib.rs | 25 .push(GenericParam::Lifetime(lifetime_with_bounds)); in derive_arbitrary() 48 if let GenericParam::Lifetime(lifetime_def) = param { in build_arbitrary_lifetime() 61 if let GenericParam::Type(type_param) = param { in add_trait_bounds()
|
/external/rust/cxx/syntax/ |
D | parse.rs | 18 GenericArgument, GenericParam, Generics, Ident, ItemEnum, ItemImpl, ItemStruct, Lit, LitStr, 89 GenericParam::Lifetime(param) => { in parse_struct() 100 GenericParam::Type(param) => { in parse_struct() 107 GenericParam::Const(param) => { in parse_struct() 512 GenericParam::Lifetime(lifetime) => !lifetime.bounds.is_empty(), in parse_extern_fn() 513 GenericParam::Type(_) | GenericParam::Const(_) => true, in parse_extern_fn() 698 GenericParam::Lifetime(param) => { in parse_extern_verbatim_type() 709 GenericParam::Type(param) => { in parse_extern_verbatim_type() 716 GenericParam::Const(param) => { in parse_extern_verbatim_type() 925 GenericParam::Lifetime(def) if def.bounds.is_empty() => { in parse_impl()
|
/external/rust/crates/syn/src/gen/ |
D | clone.rs | 929 impl Clone for GenericParam { implementation 932 GenericParam::Type(v0) => GenericParam::Type(v0.clone()), in clone() 933 GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), in clone() 934 GenericParam::Const(v0) => GenericParam::Const(v0.clone()), in clone()
|
D | eq.rs | 940 impl Eq for GenericParam {} implementation 943 impl PartialEq for GenericParam { implementation 946 (GenericParam::Type(self0), GenericParam::Type(other0)) => self0 == other0, in eq() 947 (GenericParam::Lifetime(self0), GenericParam::Lifetime(other0)) => self0 == other0, in eq() 948 (GenericParam::Const(self0), GenericParam::Const(other0)) => self0 == other0, in eq()
|
D | fold.rs | 324 fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam { in fold_generic_param() argument 1745 pub fn fold_generic_param<F>(f: &mut F, node: GenericParam) -> GenericParam in fold_generic_param() 1750 GenericParam::Type(_binding_0) => GenericParam::Type(f.fold_type_param(_binding_0)), in fold_generic_param() 1751 GenericParam::Lifetime(_binding_0) => { in fold_generic_param() 1752 GenericParam::Lifetime(f.fold_lifetime_def(_binding_0)) in fold_generic_param() 1754 GenericParam::Const(_binding_0) => GenericParam::Const(f.fold_const_param(_binding_0)), in fold_generic_param()
|
D | hash.rs | 1221 impl Hash for GenericParam { implementation 1227 GenericParam::Type(v0) => { in hash() 1231 GenericParam::Lifetime(v0) => { in hash() 1235 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 1998 pub fn visit_generic_param_mut<V>(v: &mut V, node: &mut GenericParam) in visit_generic_param_mut() 2003 GenericParam::Type(_binding_0) => { in visit_generic_param_mut() 2006 GenericParam::Lifetime(_binding_0) => { in visit_generic_param_mut() 2009 GenericParam::Const(_binding_0) => { in visit_generic_param_mut()
|
D | debug.rs | 1307 impl Debug for GenericParam { implementation 1310 GenericParam::Type(v0) => { in fmt() 1315 GenericParam::Lifetime(v0) => { in fmt() 1320 GenericParam::Const(v0) => { in fmt()
|
D | visit.rs | 323 fn visit_generic_param(&mut self, i: &'ast GenericParam) { in visit_generic_param() argument 1994 pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast GenericParam) in visit_generic_param() 1999 GenericParam::Type(_binding_0) => { in visit_generic_param() 2002 GenericParam::Lifetime(_binding_0) => { in visit_generic_param() 2005 GenericParam::Const(_binding_0) => { in visit_generic_param()
|
/external/rust/crates/syn/tests/common/ |
D | eq.rs | 11 GenericParam, GenericParamKind, Generics, GlobalAsm, ImplKind, ImplPolarity, Inline, InlineAsm, 302 spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind);
|
/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()
|