crossterm icon indicating copy to clipboard operation
crossterm copied to clipboard

`const` constructor for (and usefulness of) `StyledContent<D>`

Open nissaofthesea opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. it's not currently possible to construct a StyledContent<D> in a const context.

Describe the solution you'd like there are several functions which are not const but could be marked const.

  • StyledContent::new
  • StyledContent::content
  • StyledContent::style
  • ContentStyle::apply

a reason not to do this is that it bumps the MSRV from 1.58.1 to 1.61.0, which is technically a breaking change, but that might depend more on if a guarantee has previously been made about the MSRV.

Describe alternatives you've considered if any N/A

Additional context N/A

nissaofthesea avatar Feb 17 '23 08:02 nissaofthesea