Peter Glotfelty

Results 85 comments of Peter Glotfelty
trafficstars

Thanks for point this out. Added the linked PR to address the issue. Ideally, the iter should implement debug, but agree that Copy is probably a footgun. Unfortunately adding a...

Only strum_macros needed to be updated so that might be the confusion. Strum is still 0.24.1 but it should use macros version 0.24.2. Does that line up with what you're...

Hello @AlexTMjugador, sorry that this broke your CI :( I've received feedback in the past that strum too aggressively rev's semver so I was trying to make a compromise here,...

@dzmitry-lahoda is NAME the name of the Enum type in this case? This *somewhat* exists in libstd. https://doc.rust-lang.org/std/any/fn.type_name.html

Hello @JRAndreassen, glad to hear you like the crate! What does your `Deserialize` impl look like? I wasn't aware that serde would use a type's `FromStr` impl when deriving Deserialize

This feature doesn't exist yet, but I've wanted it a few times as well. I think it's just a matter of getting the syntax correct, and actually implementing it. What...

Let me know if you think this would meet your needs. I can't promise I'll get too it soon, but you're also welcome to give it a try if you're...

Hello @FrederickFrance, deserializing should use the same case-style that serialization uses. See [this test](https://github.com/Peternator7/strum/blob/9465cd5dbbdc38c3f2fa5edf4aeeed66f813038c/strum_tests/tests/from_str.rs#L74) for an example. If that doesn't work, would you mind sharing some code to repro the...

Alas, you are correct, without const trait methods, this would be difficult to do in the general case. I'm going to leave it open because I like the idea, but...