/third_party/rust/crates/syn/tests/ |
H A D | test_generics.rs | 11 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate}; 60 TypeParamBound::Lifetime { in test_split_for_impl() 82 TypeParamBound::Trait(TraitBound { in test_split_for_impl() 131 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 132 TypeParamBound::Lifetime { in test_ty_param_bound() 138 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 139 TypeParamBound::Lifetime { in test_ty_param_bound() 145 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound() 146 TypeParamBound::Trait(TraitBound { in test_ty_param_bound() 158 snapshot!(tokens as TypeParamBound, in test_ty_param_bound() [all...] |
/third_party/rust/crates/syn/src/ |
H A D | ty.rs | 125 pub bounds: Punctuated<TypeParamBound, Token![+]>, 209 pub bounds: Punctuated<TypeParamBound, Token![+]>, 377 bounds.push_value(TypeParamBound::Trait(TraitBound { 412 TypeParamBound::Trait(TraitBound { 431 TypeParamBound::Trait(trait_bound) => { 432 TypeParamBound::Trait(TraitBound { 437 other @ (TypeParamBound::Lifetime(_) 438 | TypeParamBound::Verbatim(_)) => other, 496 bounds.push_value(TypeParamBound::Trait(TraitBound { 803 ) -> Result<Punctuated<TypeParamBound, Toke in parse_bounds() [all...] |
H A D | generics.rs | 68 pub bounds: Punctuated<TypeParamBound, Token![+]>, 449 pub enum TypeParamBound { enum 528 pub bounds: Punctuated<TypeParamBound, Token![+]>, 719 let value: TypeParamBound = input.parse()?; in parse() 748 impl Parse for TypeParamBound { 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 { impls
|
H A D | path.rs | 232 pub bounds: Punctuated<TypeParamBound, Token![+]>, 355 let value: TypeParamBound = input.parse()?; in parse()
|
H A 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() 1172 bounds.push_value(input.parse::<TypeParamBound>()?); in parse_optional_bounds()
|
H A D | lib.rs | 385 PredicateType, TraitBound, TraitBoundModifier, TypeParam, TypeParamBound, WhereClause,
|
/third_party/rust/crates/serde/serde_derive_internals/src/ |
H A 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() 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/serde/serde_derive/src/internals/ |
H A 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() 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/serde/serde_derive/src/ |
H A D | bound.rs | 226 fn visit_type_param_bound(&mut self, bound: &'ast syn::TypeParamBound) { in visit_type_param_bound() 229 syn::TypeParamBound::Trait(bound) => self.visit_path(&bound.path), in visit_type_param_bound() 230 syn::TypeParamBound::Lifetime(_) | syn::TypeParamBound::Verbatim(_) => {} in visit_type_param_bound() 291 bounds: vec![syn::TypeParamBound::Trait(syn::TraitBound { 325 bounds: vec![syn::TypeParamBound::Trait(syn::TraitBound { in with_self_bound() 356 .push(syn::TypeParamBound::Lifetime(bound.clone())); in with_lifetime_bound()
|
H A D | de.rs | 3045 param.bounds.push(syn::TypeParamBound::Lifetime( in to_tokens()
|
/third_party/rust/crates/syn/src/gen/ |
H A D | clone.rs | 1959 impl Clone for TypeParamBound { 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()
|
H A D | eq.rs | 1900 impl Eq for TypeParamBound {} 1903 impl PartialEq for TypeParamBound { 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()
|
H A D | fold.rs | 826 fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound { in fold_type_param_bound() 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 in fold_type_param_bound() [all...] |
H A D | hash.rs | 2521 impl Hash for TypeParamBound { 2527 TypeParamBound::Trait(v0) => { in hash() 2531 TypeParamBound::Lifetime(v0) => { in hash() 2535 TypeParamBound::Verbatim(v0) => { in hash()
|
H A D | visit_mut.rs | 823 fn visit_type_param_bound_mut(&mut self, i: &mut TypeParamBound) { in visit_type_param_bound_mut() 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()
|
H A D | debug.rs | 2732 impl Debug for TypeParamBound { 2734 formatter.write_str("TypeParamBound::")?; in fmt() 2736 TypeParamBound::Trait(v0) => { in fmt() 2741 TypeParamBound::Lifetime(v0) => v0.debug(formatter, "Lifetime"), in fmt() 2742 TypeParamBound::Verbatim(v0) => { in fmt()
|
H A D | visit.rs | 822 fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { in visit_type_param_bound() 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/gen/build/src/syntax/ |
H A 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/cxx/gen/lib/src/syntax/ |
H A 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/cxx/macro/src/syntax/ |
H A 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/cxx/gen/cmd/src/syntax/ |
H A 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/cxx/syntax/ |
H A 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/ |
H A D | gen.rs | 4336 impl Debug for Lite<syn::TypeParamBound> { 4339 syn::TypeParamBound::Trait(_val) => { in fmt() 4340 formatter.write_str("TypeParamBound::Trait")?; in fmt() 4346 syn::TypeParamBound::Lifetime(_val) => { in fmt() 4347 let mut formatter = formatter.debug_struct("TypeParamBound::Lifetime"); in fmt() 4351 syn::TypeParamBound::Verbatim(_val) => { in fmt() 4352 formatter.write_str("TypeParamBound::Verbatim")?; in fmt()
|