Home
last modified time | relevance | path

Searched refs:TypeParamBound (Results 1 – 20 of 20) sorted by relevance

/external/rust/crates/syn/tests/
Dtest_generics.rs5 use syn::{DeriveInput, ItemFn, TypeParamBound, WhereClause, WherePredicate};
128 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound()
135 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound()
142 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound()
157 snapshot!(tokens as TypeParamBound, @r###" in test_ty_param_bound()
/external/rust/crates/serde_derive/src/
Dbound.rs228 fn visit_type_param_bound(&mut self, bound: &'ast syn::TypeParamBound) { in with_bound() argument
230 syn::TypeParamBound::Trait(bound) => self.visit_path(&bound.path), in with_bound()
231 syn::TypeParamBound::Lifetime(_) => {} 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()
Dde.rs3002 param.bounds.push(syn::TypeParamBound::Lifetime( in to_tokens()
/external/rust/crates/serde_derive/src/internals/
Dreceiver.rs8 Path, PathArguments, QSelf, ReturnType, Type, TypeParamBound, TypePath, WherePredicate,
207 fn visit_type_param_bound_mut(&mut self, bound: &mut TypeParamBound) { in visit_type_param_bound_mut() argument
209 TypeParamBound::Trait(bound) => self.visit_path_mut(&mut bound.path), in visit_type_param_bound_mut()
210 TypeParamBound::Lifetime(_) => {} in visit_type_param_bound_mut()
/external/rust/crates/syn/src/
Dty.rs147 pub bounds: Punctuated<TypeParamBound, Token![+]>,
258 pub bounds: Punctuated<TypeParamBound, Token![+]>,
441 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty()
476 TypeParamBound::Trait(TraitBound { in ambig_ty()
495 TypeParamBound::Trait(trait_bound) => { in ambig_ty()
496 TypeParamBound::Trait(TraitBound { in ambig_ty()
501 other @ TypeParamBound::Lifetime(_) => other, in ambig_ty()
547 TypeParamBound::Trait(trait_bound) => { in ambig_ty()
550 TypeParamBound::Lifetime(_) => unreachable!(), in ambig_ty()
588 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty()
[all …]
Dgenerics.rs58 pub bounds: Punctuated<TypeParamBound, Token![+]>,
483 pub enum TypeParamBound {
568 pub bounds: Punctuated<TypeParamBound, Token![+]>,
785 let value: TypeParamBound = input.parse()?; in parse()
820 impl Parse for TypeParamBound { implementation
823 return input.parse().map(TypeParamBound::Lifetime); in parse()
831 return Ok(TypeParamBound::Trait(bound)); in parse()
834 input.parse().map(TypeParamBound::Trait) in parse()
Dpath.rs162 pub bounds: Punctuated<TypeParamBound, Token![+]>,
412 fn constraint_bounds(input: ParseStream) -> Result<Punctuated<TypeParamBound, Token![+]>> { in constraint_bounds() argument
Dlib.rs361 PredicateLifetime, PredicateType, TraitBound, TraitBoundModifier, TypeParam, TypeParamBound,
Ditem.rs292 pub supertraits: Punctuated<TypeParamBound, Token![+]>,
310 pub bounds: Punctuated<TypeParamBound, Token![+]>,
762 pub bounds: Punctuated<TypeParamBound, Token![+]>,
1178 bounds: Punctuated<TypeParamBound, Token![+]>,
1197 bounds.push_value(input.parse::<TypeParamBound>()?); in parse()
1988 bounds.push_value(input.parse::<TypeParamBound>()?); in item_existential()
/external/rust/crates/async-trait/src/
Dexpand.rs11 PatIdent, Receiver, ReturnType, Signature, Stmt, Token, TraitItem, Type, TypeParamBound,
58 type Supertraits = Punctuated<TypeParamBound, Token![+]>;
398 if let TypeParamBound::Trait(bound) = bound { in has_bound()
/external/rust/crates/pin-project-internal/src/
Dutils.rs13 TypeParamBound, TypePath, Variant, Visibility, WherePredicate,
67 punct.push(TypeParamBound::Lifetime(lifetime)); in insert_lifetime_and_bound()
/external/rust/cxx/syntax/
Dparse.rs20 TraitBoundModifier, Type as RustType, TypeArray, TypeBareFn, TypeParamBound, TypePath, TypePtr,
825 TypeParamBound::Trait(TraitBound { in parse_extern_type_bounded()
836 bound @ TypeParamBound::Trait(_) | bound @ TypeParamBound::Lifetime(_) => { in parse_extern_type_bounded()
/external/rust/crates/syn/src/gen/
Dclone.rs1995 impl Clone for TypeParamBound { implementation
1998 TypeParamBound::Trait(v0) => TypeParamBound::Trait(v0.clone()), in clone()
1999 TypeParamBound::Lifetime(v0) => TypeParamBound::Lifetime(v0.clone()), in clone()
Deq.rs2027 impl Eq for TypeParamBound {} implementation
2030 impl PartialEq for TypeParamBound { implementation
2033 (TypeParamBound::Trait(self0), TypeParamBound::Trait(other0)) => self0 == other0, in eq()
2034 (TypeParamBound::Lifetime(self0), TypeParamBound::Lifetime(other0)) => self0 == other0, in eq()
Dfold.rs684 fn fold_type_param_bound(&mut self, i: TypeParamBound) -> TypeParamBound { in fold_type_param_bound() argument
2957 pub fn fold_type_param_bound<F>(f: &mut F, node: TypeParamBound) -> TypeParamBound in fold_type_param_bound()
2962 TypeParamBound::Trait(_binding_0) => TypeParamBound::Trait(f.fold_trait_bound(_binding_0)), in fold_type_param_bound()
2963 TypeParamBound::Lifetime(_binding_0) => { in fold_type_param_bound()
2964 TypeParamBound::Lifetime(f.fold_lifetime(_binding_0)) in fold_type_param_bound()
Dhash.rs2562 impl Hash for TypeParamBound { implementation
2568 TypeParamBound::Trait(v0) => { in hash()
2572 TypeParamBound::Lifetime(v0) => { in hash()
Dvisit_mut.rs684 fn visit_type_param_bound_mut(&mut self, i: &mut TypeParamBound) { in visit_type_param_bound_mut() argument
3499 pub fn visit_type_param_bound_mut<V>(v: &mut V, node: &mut TypeParamBound) in visit_type_param_bound_mut()
3504 TypeParamBound::Trait(_binding_0) => { in visit_type_param_bound_mut()
3507 TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound_mut()
Dvisit.rs680 fn visit_type_param_bound(&mut self, i: &'ast TypeParamBound) { in visit_type_param_bound() argument
3493 pub fn visit_type_param_bound<'ast, V>(v: &mut V, node: &'ast TypeParamBound) in visit_type_param_bound()
3498 TypeParamBound::Trait(_binding_0) => { in visit_type_param_bound()
3501 TypeParamBound::Lifetime(_binding_0) => { in visit_type_param_bound()
Ddebug.rs2731 impl Debug for TypeParamBound { implementation
2734 TypeParamBound::Trait(v0) => { in fmt()
2739 TypeParamBound::Lifetime(v0) => { in fmt()
/external/rust/crates/syn/tests/debug/
Dgen.rs5238 impl Debug for Lite<syn::TypeParamBound> {
5242 syn::TypeParamBound::Trait(_val) => { in fmt()
5249 syn::TypeParamBound::Lifetime(_val) => { in fmt()