Comments (2)
I have implemented this. I'll try and get it deployed soon.
from strum.
Good catch! Since ToString
already exists, I'm inclined to leave it and maintain backwards compatability, and then add an additional derive(Display)
method as well.
That way we don't break existing code, and I can add a note on ToString
that recommends using Display
in most cases. I'll try and get to this soon :)
from strum.
Related Issues (20)
- Make derive macros and traits available from a single crate HOT 2
- Create FromRepr trait? HOT 5
- is_* methods HOT 1
- `strum::EnumString` deriving `TryFrom<&str>` means `From<&str>` cannot be implemented HOT 3
- Add #[strum(transparent)] argument HOT 1
- Breaks under re-export HOT 1
- How to Properly Use FromStr? HOT 1
- Disabled variant still included in Count
- Enum variant with number produces "is not a valid identifier"
- Enum Map derive macro HOT 7
- Convert between structs and enums HOT 2
- derive(FromRepr) broken in 0.25.0 HOT 13
- Unwrap methods HOT 6
- strum(serialize_all vs serde(rename_all HOT 1
- rustfmt::skip is broken by derive(FromRepr) HOT 1
- Maybe EnumCount should respect `#[repr(...)]` like FromRepr HOT 2
- EnumDiscriminants should inherit the repr of the enum they are derived from HOT 1
- `could not find fmt in core` when upgrading to 0.25 HOT 1
- Proposal: Exclude macro for EnumIter macro
- IntoStaticStr but from immutable reference to an enum From<&MyEnum> HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strum.