/third_party/rust/crates/syn/tests/ |
D | test_generics.rs | 11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate}; 131 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 138 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 145 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 158 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound()
|
/third_party/rust/crates/syn/src/ |
D | ty.rs | 125 pub bounds: Punctuated<TypeParamBound, Token![+]>, 209 pub bounds: Punctuated<TypeParamBound, Token![+]>, 377 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty() 412 TypeParamBound::Trait(TraitBound { in ambig_ty() 431 TypeParamBound::Trait(trait_bound) => { in ambig_ty() 432 TypeParamBound::Trait(TraitBound { in ambig_ty() 437 other @ (TypeParamBound::Lifetime(_) in ambig_ty() 438 | TypeParamBound::Verbatim(_)) => other, in ambig_ty() 496 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty() 803 ) -> Result<Punctuated<TypeParamBound, Token![+]>> { in parse_bounds() argument [all …]
|
D | generics.rs | 68 pub bounds: Punctuated<TypeParamBound, Token![+]>, 449 pub enum TypeParamBound { 528 pub bounds: Punctuated<TypeParamBound, Token![+]>, 719 let value: TypeParamBound = input.parse()?; in parse() 748 impl Parse for TypeParamBound { implementation 751 return input.parse().map(TypeParamBound::Lifetime); in parse() 774 Ok(TypeParamBound::Verbatim(verbatim::between(&begin, input))) in parse() 776 Ok(TypeParamBound::Trait(bound)) in parse() 781 impl TypeParamBound { implementation
|
D | path.rs | 232 pub bounds: Punctuated<TypeParamBound, Token![+]>, 355 let value: TypeParamBound = input.parse()?; in parse()
|
D | item.rs | 247 pub supertraits: Punctuated<TypeParamBound, Token![+]>, 263 pub bounds: Punctuated<TypeParamBound, Token![+]>, 661 pub bounds: Punctuated<TypeParamBound, Token![+]>, 1093 bounds: Punctuated<TypeParamBound, Token![+]>, 1163 ) -> Result<(Option<Token![:]>, Punctuated<TypeParamBound, Token![+]>)> { in parse_optional_bounds() argument 1172 bounds.push_value(input.parse::<TypeParamBound>()?); in parse_optional_bounds()
|
D | lib.rs | 385 PredicateType, TraitBound, TraitBoundModifier, TypeParam, TypeParamBound, WhereClause,
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | bound.rs | 226 fn visit_type_param_bound(&mut self, bound: &'ast syn::TypeParamBound) { in with_bound() argument 229 syn::TypeParamBound::Trait(bound) => self.visit_path(&bound.path), in with_bound() 230 syn::TypeParamBound::Lifetime(_) | syn::TypeParamBound::Verbatim(_) => {} in with_bound() 291 bounds: vec![syn::TypeParamBound::Trait(syn::TraitBound { in with_bound() 325 bounds: vec![syn::TypeParamBound::Trait(syn::TraitBound { in with_self_bound() 356 .push(syn::TypeParamBound::Lifetime(bound.clone())); in with_lifetime_bound()
|
D | de.rs | 3045 param.bounds.push(syn::TypeParamBound::Lifetime( in to_tokens()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | receiver.rs | 8 Path, PathArguments, QSelf, ReturnType, Token, Type, TypeParamBound, TypePath, WherePredicate, 208 fn visit_type_param_bound_mut(&mut self, bound: &mut TypeParamBound) { in visit_type_param_bound_mut() argument 211 TypeParamBound::Trait(bound) => self.visit_path_mut(&mut bound.path), in visit_type_param_bound_mut() 212 TypeParamBound::Lifetime(_) | TypeParamBound::Verbatim(_) => {} in visit_type_param_bound_mut()
|
/third_party/rust/crates/syn/src/gen/ |
D | clone.rs | 1959 impl Clone for TypeParamBound { implementation 1962 TypeParamBound::Trait(v0) => TypeParamBound::Trait(v0.clone()), in clone() 1963 TypeParamBound::Lifetime(v0) => TypeParamBound::Lifetime(v0.clone()), in clone() 1964 TypeParamBound::Verbatim(v0) => TypeParamBound::Verbatim(v0.clone()), in clone()
|
D | eq.rs | 1900 impl Eq for TypeParamBound {} implementation 1903 impl PartialEq for TypeParamBound { implementation 1906 (TypeParamBound::Trait(self0), TypeParamBound::Trait(other0)) => { in eq() 1909 (TypeParamBound::Lifetime(self0), TypeParamBound::Lifetime(other0)) => { in eq() 1912 (TypeParamBound::Verbatim(self0), TypeParamBound::Verbatim(other0)) => { in eq()
|
D | fold.rs | 826 fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound { in fold_type_param_bound() argument 3205 pub fn fold_type_param_bound<F>(f: &mut F, node: TypeParamBound) -> TypeParamBound in fold_type_param_bound() 3210 TypeParamBound::Trait(_binding_0) => { in fold_type_param_bound() 3211 TypeParamBound::Trait(f.fold_trait_bound(_binding_0)) in fold_type_param_bound() 3213 TypeParamBound::Lifetime(_binding_0) => { in fold_type_param_bound() 3214 TypeParamBound::Lifetime(f.fold_lifetime(_binding_0)) in fold_type_param_bound() 3216 TypeParamBound::Verbatim(_binding_0) => TypeParamBound::Verbatim(_binding_0), in fold_type_param_bound()
|
D | hash.rs | 2521 impl Hash for TypeParamBound { implementation 2527 TypeParamBound::Trait(v0) => { in hash() 2531 TypeParamBound::Lifetime(v0) => { in hash() 2535 TypeParamBound::Verbatim(v0) => { in hash()
|
D | visit_mut.rs | 823 fn visit_type_param_bound_mut(&mut self, i: &mut TypeParamBound) { in visit_type_param_bound_mut() argument 3579 pub fn visit_type_param_bound_mut<V>(v: &mut V, node: &mut TypeParamBound) in visit_type_param_bound_mut() 3584 TypeParamBound::Trait(_binding_0) => { in visit_type_param_bound_mut() 3587 TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound_mut() 3590 TypeParamBound::Verbatim(_binding_0) => { in visit_type_param_bound_mut()
|
D | debug.rs | 2732 impl Debug for TypeParamBound { implementation 2736 TypeParamBound::Trait(v0) => { in fmt() 2741 TypeParamBound::Lifetime(v0) => v0.debug(formatter, "Lifetime"), in fmt() 2742 TypeParamBound::Verbatim(v0) => { in fmt()
|
D | visit.rs | 822 fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { in visit_type_param_bound() argument 3576 pub fn visit_type_param_bound<'ast, V>(v: &mut V, node: &'ast TypeParamBound) in visit_type_param_bound() 3581 TypeParamBound::Trait(_binding_0) => { in visit_type_param_bound() 3584 TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound() 3587 TypeParamBound::Verbatim(_binding_0) => { in visit_type_param_bound()
|
/third_party/rust/crates/cxx/syntax/ |
D | parse.rs | 21 TraitBoundModifier, Type as RustType, TypeArray, TypeBareFn, TypeParamBound, TypePath, TypePtr, 919 TypeParamBound::Trait(TraitBound { in parse_extern_type_bounded()
|
/third_party/rust/crates/syn/tests/debug/ |
D | gen.rs | 4336 impl Debug for Lite<syn::TypeParamBound> { 4339 syn::TypeParamBound::Trait(_val) => { in fmt() 4346 syn::TypeParamBound::Lifetime(_val) => { in fmt() 4351 syn::TypeParamBound::Verbatim(_val) => { in fmt()
|