You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We still cant put conts fn in impl Trait, so we can't mark methods of OwoColorize as const. But const_fn_trait_bound is already stable. Which means that we can allow creating FgColorDisplay (and others) in const context.
I personally think having colorized constants is pretty useful (I created this issue because I wanted to do that, but found out, that I can't). So maybe we can add support for that in some form or another?
The text was updated successfully, but these errors were encountered:
I will try to look into that as I definitely understand the desire. At minimum as trait const fns continue along more it'll definitely be better supported
We still cant put
conts fn
inimpl Trait
, so we can't mark methods ofOwoColorize
asconst
. Butconst_fn_trait_bound
is already stable. Which means that we can allow creatingFgColorDisplay
(and others) in const context.For example, like this:
I personally think having colorized constants is pretty useful (I created this issue because I wanted to do that, but found out, that I can't). So maybe we can add support for that in some form or another?
The text was updated successfully, but these errors were encountered: