pub fn with_where_predicates_from_variants( cont: &Container<'_>, generics: &Generics, from_variant: fn(_: &Variant) -> Option<&[WherePredicate]>, ) -> Generics