Lines Matching refs:TypeParamBound
5 use crate::generics::{BoundLifetimes, TypeParamBound};
135 pub bounds: Punctuated<TypeParamBound, Token![+]>,
219 pub bounds: Punctuated<TypeParamBound, Token![+]>,
280 use crate::generics::{BoundLifetimes, TraitBound, TraitBoundModifier, TypeParamBound};
401 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty()
410 TypeParamBound::parse_single( in ambig_ty()
444 TypeParamBound::Trait(TraitBound { in ambig_ty()
463 TypeParamBound::Trait(trait_bound) => { in ambig_ty()
464 TypeParamBound::Trait(TraitBound { in ambig_ty()
469 other @ (TypeParamBound::Lifetime(_) in ambig_ty()
470 | TypeParamBound::PreciseCapture(_) in ambig_ty()
471 | TypeParamBound::Verbatim(_)) => other, in ambig_ty()
486 TypeParamBound::parse_single( in ambig_ty()
537 bounds.push_value(TypeParamBound::Trait(TraitBound { in ambig_ty()
557 TypeParamBound::parse_single(input, allow_precise_capture, allow_const)? in ambig_ty()
848 ) -> Result<Punctuated<TypeParamBound, Token![+]>> { in parse_bounds() argument
851 let bounds = TypeParamBound::parse_multiple( in parse_bounds()
861 TypeParamBound::Trait(_) => { in parse_bounds()
865 TypeParamBound::Lifetime(lifetime) => { in parse_bounds()
868 TypeParamBound::PreciseCapture(_) | TypeParamBound::Verbatim(_) => { in parse_bounds()
901 let bounds = TypeParamBound::parse_multiple( in parse()
911 TypeParamBound::Trait(_) => { in parse()
915 TypeParamBound::Lifetime(lifetime) => { in parse()
918 TypeParamBound::PreciseCapture(precise_capture) => { in parse()
929 TypeParamBound::Verbatim(_) => { in parse()