crossterm
crossterm copied to clipboard
`const` constructor for (and usefulness of) `StyledContent<D>`
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