Comments (2)
@blind-oracle, IntoStaticStr
doesn't work with format strings. At macro expansion, there's no information about types other than the annotated enum so even though B
also derives IntoStaticStr
, there's no easy way to know that in the context of A
.
from strum.
@Peternator7 I thought as much, it just a bit confused me that IntoStaticStr
used the to_string
in some way, but not as intended. Thanks for the response!
from strum.
Related Issues (20)
- AsRefStr documentation incorrectly states 'static ref is returned HOT 2
- Publish Git tags HOT 2
- TryFrom<Repr> for enums using FromRepr? HOT 2
- Implement `Iterator` for EnumTable HOT 6
- Customize error message for FromStr
- Documentation for `VariantArray` and `VariantNames` say their `VARIANTS` constants are arrays, but they're actually slices HOT 2
- Support for const_into_str to Enable Static String Conversion in Const Context
- Accessing the EnumTable type through the enum HOT 1
- Error updating to 0.26 - trait bound `std::iter::FusedIterator` is not satisfied HOT 1
- Itertools 0.13.0 and strum derive macro EnumIter break if both are used at the same time HOT 2
- strum-macros 0.26.3 breaks `no_std` build HOT 5
- Round tripping "{{}}" doesn't work with Display + EnumString in 0.26 HOT 2
- EnumProperty must be defined only once in the macro namespace of this module HOT 1
- Using `#[strum(to_string = "}")]` results in macro error HOT 3
- Fix itertools compatibility part 2. Release strum 0.26.3
- Is this expected behavior (combining EnumStrings with multiple serializes and ascii_case_insensitive with VariantNames)?
- CStr support
- Why don't iterators created by `EnumIter` implement `ExactSizeIterator`? HOT 1
- No support when using #![no_std]
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.