fn param_bound_contains_generic(generics: &Generics, bound: &TypeParamBound) -> bool {
    match bound {
        syn::TypeParamBound::Trait(TraitBound { path, .. }) => {
            path_contains_generic(generics, path)
        }
        syn::TypeParamBound::Lifetime(_) => false,
    }
}
/// Returns whether any of the `generics` show up in a type parameter binding.
///
/// May return false positives.
Returns whether any of the `generics` show up in a type parameter binding.
May return false positives.
Returns whether any of the ` generics ` show up in a type parameter binding . May return false positives .
fn param_bound_contains_generic(generics: &Generics, bound: &TypeParamBound) -> bool {
    match bound {
        syn::TypeParamBound::Trait(TraitBound { path, .. }) => {
            path_contains_generic(generics, path)
        }
        syn::TypeParamBound::Lifetime(_) => false,
    }
}
fn param_bound_contains_generic ( generics : & Generics , bound : & TypeParamBound ) -> bool { match bound { syn :: TypeParamBound :: Trait ( TraitBound { path , .. } ) => { path_contains_generic ( generics , path ) } syn :: TypeParamBound :: Lifetime ( _ ) => false , } }
Returns whether any of the `generics` show up in a type parameter binding.
Returns whether any of the ` generics ` show up in a type parameter binding .
generics
&Generics
bound
&TypeParamBound