Lines Matching refs:bound
79 // Puts the given bound on any generic type parameters that are used in fields
82 // For example, the following struct needs the bound `A: Serialize, B:
95 bound: &syn::Path,
157 for bound in &ty.bounds {
158 self.visit_type_param_bound(bound);
173 for bound in &ty.bounds {
174 self.visit_type_param_bound(bound);
226 fn visit_type_param_bound(&mut self, bound: &'ast syn::TypeParamBound) {
227 match bound {
229 syn::TypeParamBound::Trait(bound) => self.visit_path(&bound.path),
290 // the bound e.g. Serialize
295 path: bound.clone(),
313 bound: &syn::Path,
324 // the bound e.g. Default
329 path: bound.clone(),
338 let bound = syn::Lifetime::new(lifetime, Span::call_site());
341 lifetime: bound.clone(),
351 param.bounds.push(bound.clone());
356 .push(syn::TypeParamBound::Lifetime(bound.clone()));