/third_party/rust/crates/syn/src/ |
D | generics.rs | 22 pub params: Punctuated<GenericParam, Token![,]>, 38 pub enum GenericParam { 175 pub struct Lifetimes<'a>(Iter<'a, GenericParam>); 185 if let GenericParam::Lifetime(lifetime) = next { in next() 193 pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>); 203 if let GenericParam::Lifetime(lifetime) = next { in next() 211 pub struct TypeParams<'a>(Iter<'a, GenericParam>); 221 if let GenericParam::Type(type_param) = next { in next() 229 pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>); 239 if let GenericParam::Type(type_param) = next { in next() [all …]
|
D | lib.rs | 384 BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeParam, PredicateLifetime,
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | bound.rs | 17 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 | 3022 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3041 syn::GenericParam::Lifetime(param) => { in to_tokens() 3044 syn::GenericParam::Type(param) => { in to_tokens() 3049 syn::GenericParam::Const(_) => {} in to_tokens() 3052 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime)) in to_tokens() 3057 generics.params = Some(syn::GenericParam::Lifetime(de_lifetime)) in to_tokens() 3091 generics.params = Some(syn::GenericParam::Lifetime(def)) in de_type_generics_to_tokens() 3110 generics.params = Some(syn::GenericParam::Lifetime(place_lifetime())) in to_tokens()
|
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/ |
D | lib.rs | 5 parse_macro_input, parse_quote, Data, DeriveInput, Fields, GenericParam, Generics, Index, 39 if let GenericParam::Type(ref mut type_param) = *param { in add_trait_bounds()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | receiver.rs | 7 parse_quote, Data, DeriveInput, Expr, ExprPath, GenericArgument, GenericParam, Generics, Macro, 220 GenericParam::Type(param) => { in visit_generics_mut() 225 GenericParam::Lifetime(_) | GenericParam::Const(_) => {} in visit_generics_mut()
|
/third_party/rust/crates/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() 548 GenericParam::Lifetime(lifetime) => !lifetime.bounds.is_empty(), in parse_extern_fn() 549 GenericParam::Type(_) | GenericParam::Const(_) => true, in parse_extern_fn() 798 GenericParam::Lifetime(param) => { in extern_type_lifetimes() 809 GenericParam::Type(param) => { in extern_type_lifetimes() 816 GenericParam::Const(param) => { in extern_type_lifetimes() 1031 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()
|
/third_party/rust/crates/syn/src/gen/ |
D | clone.rs | 937 impl Clone for GenericParam { implementation 940 GenericParam::Lifetime(v0) => GenericParam::Lifetime(v0.clone()), in clone() 941 GenericParam::Type(v0) => GenericParam::Type(v0.clone()), in clone() 942 GenericParam::Const(v0) => GenericParam::Const(v0.clone()), in clone()
|
D | eq.rs | 918 impl Eq for GenericParam {} implementation 921 impl PartialEq for GenericParam { implementation 924 (GenericParam::Lifetime(self0), GenericParam::Lifetime(other0)) => { in eq() 927 (GenericParam::Type(self0), GenericParam::Type(other0)) => self0 == other0, in eq() 928 (GenericParam::Const(self0), GenericParam::Const(other0)) => self0 == other0, in eq()
|
D | fold.rs | 402 fn fold_generic_param(&mut self, i: GenericParam) -> GenericParam { in fold_generic_param() argument 1972 pub fn fold_generic_param<F>(f: &mut F, node: GenericParam) -> GenericParam in fold_generic_param() 1977 GenericParam::Lifetime(_binding_0) => { in fold_generic_param() 1978 GenericParam::Lifetime(f.fold_lifetime_param(_binding_0)) in fold_generic_param() 1980 GenericParam::Type(_binding_0) => { in fold_generic_param() 1981 GenericParam::Type(f.fold_type_param(_binding_0)) in fold_generic_param() 1983 GenericParam::Const(_binding_0) => { in fold_generic_param() 1984 GenericParam::Const(f.fold_const_param(_binding_0)) in fold_generic_param()
|
D | hash.rs | 1225 impl Hash for GenericParam { implementation 1231 GenericParam::Lifetime(v0) => { in hash() 1235 GenericParam::Type(v0) => { in hash() 1239 GenericParam::Const(v0) => { in hash()
|
D | visit_mut.rs | 402 fn visit_generic_param_mut(&mut self, i: &mut GenericParam) { in visit_generic_param_mut() argument 2178 pub fn visit_generic_param_mut<V>(v: &mut V, node: &mut GenericParam) in visit_generic_param_mut() 2183 GenericParam::Lifetime(_binding_0) => { in visit_generic_param_mut() 2186 GenericParam::Type(_binding_0) => { in visit_generic_param_mut() 2189 GenericParam::Const(_binding_0) => { in visit_generic_param_mut()
|
D | debug.rs | 1368 impl Debug for GenericParam { implementation 1372 GenericParam::Lifetime(v0) => { in fmt() 1377 GenericParam::Type(v0) => { in fmt() 1382 GenericParam::Const(v0) => { in fmt()
|
D | visit.rs | 401 fn visit_generic_param(&mut self, i: &'ast GenericParam) { in visit_generic_param() argument 2177 pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast GenericParam) in visit_generic_param() 2182 GenericParam::Lifetime(_binding_0) => { in visit_generic_param() 2185 GenericParam::Type(_binding_0) => { in visit_generic_param() 2188 GenericParam::Const(_binding_0) => { in visit_generic_param()
|
/third_party/rust/crates/syn/tests/common/ |
D | eq.rs | 74 use rustc_ast::ast::GenericParam; 482 spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind !colon_span);
|
/third_party/rust/crates/syn/tests/debug/ |
D | gen.rs | 2026 impl Debug for Lite<syn::GenericParam> { 2029 syn::GenericParam::Lifetime(_val) => { in fmt() 2036 syn::GenericParam::Type(_val) => { in fmt() 2043 syn::GenericParam::Const(_val) => { in fmt()
|