Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of colored strings should probably be const fn #48

Open
PvdBerg1998 opened this issue Mar 4, 2019 · 4 comments
Open

Creation of colored strings should probably be const fn #48

PvdBerg1998 opened this issue Mar 4, 2019 · 4 comments

Comments

@PvdBerg1998
Copy link

See title. I don't know if this is already possible using the current possibilities of const fn, but setting a color on a constant string is definitely something I would expect to be possible.

@mackwic
Copy link
Collaborator

mackwic commented Apr 30, 2019

That's a great idea ! Would you like to try a PR ? I currently does not have time to work on it.

@maxrumsey
Copy link

I'd be happy to take a stab at this, if no one else is planning on doing it!

@kurtlawrence
Copy link
Collaborator

@maxrumsey Please do =)

@sameer
Copy link

sameer commented Aug 4, 2020

I tried to do this, and it's a lot more complex than I thought it would be. You can't use Strings in const fns so it needs to be a separate struct with a &str and a bunch of const fns for coloring + styling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants