owo-colors 4.2.0
Added
Style::prefix_formatterandStyle::suffix_formatterreturnDisplayformatters for the prefix and the suffix of a style, respectively.- All the
*Displaytypes now have aninto_styledfunction that converts those types into aStyled, erasing type parameters. - Even more methods are now
const.
Changed
-
The
ColorandDynColortraits are now explicitly marked sealed (i.e. downstream crates cannot implement them).These traits were already effectively sealed due to a number of hidden methods that were not part of the API, but they are now explicitly so. In that sense this is not a breaking change, so it's being released under a new minor version rather than a major version.