We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the documentation and Wiki for EnumString , there is //The generated code will look like: but there is no actual code example how to use it.
//The generated code will look like:
Something like this:
use std::str::FromStr; let color_str="Red"; let color_variant = Color ::from_str(color_str).unwrap(); assert!(Color:Red, color_variant);
Why is the documentation/examples using the old syntax:
extern crate strum; #[macro_use] extern crate strum_macros;
instead of the new:
use strum; use strum_macros
The text was updated successfully, but these errors were encountered:
Good points. I've updated the wiki page with your comments. Thanks!
Sorry, something went wrong.
No branches or pull requests
In the documentation and Wiki for EnumString , there is
//The generated code will look like:
but there is no actual code example how to use it.
Something like this:
Why is the documentation/examples using the old syntax:
instead of the new:
The text was updated successfully, but these errors were encountered: