Skip to content

Cases Enum#52

Open
wyatt-herkamp wants to merge 4 commits intowithoutboats:masterfrom
wyatt-herkamp:master
Open

Cases Enum#52
wyatt-herkamp wants to merge 4 commits intowithoutboats:masterfrom
wyatt-herkamp:master

Conversation

@wyatt-herkamp
Copy link

@wyatt-herkamp wyatt-herkamp commented Nov 18, 2023

Projects Like Strum and a few of mine create an Enum of Case Options. Let's go ahead and provide one.

To Uppercase and To Lowercase

I know that support for Uppercase and Lowercase is not something provided in the library. However, the Enum would not be very useful if it didn't provide the options that get used.

The adding of the PHF crate.

The performance of the default match statement is not the best. However, PHF can improve the performance a bit and if the user wants to keep the dependencies low they don't need to have it.

@wyatt-herkamp
Copy link
Author

Upon Further Testing. PHF is actually slower by a lot in this case.

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

Successfully merging this pull request may close these issues.

1 participant