Mark LeMoine

Results 36 comments of Mark LeMoine

Currently in this exact situation: I have a library, and a binary that uses said library. I'd prefer for them both to be in the same crate, but I also...

Isn't this the same as `AsRefStr`, since this also generates a `From

Haven't had a use case for this yet, but I imagine this is a helpful feature!

Similar to `EnumProperty` for me, I don't see myself using this very much. Maybe if it were possible to enforce a property being defined for every variant (so that `Option`...

@jplatte I agree with your suggestion, I find myself confusing this with `AsRefStr`/`ToString` often. Having `From` in the name would help with indicating that this is the &str -> enum...

Admittedly, I don't foresee myself ever using this one over `AsRefStr` or `Display`. I wouldn't miss this one if it were to be cut.

This macro is the original reason I found out about `strum`, and added it as a dependency. It's one of the most important features of the crate, IMO!

Sounds good! I’ll add a test for the new functionality, and I’ll also add documentation and examples (I had skipped those for now, since I wanted to get some feedback...

This seems helpful, though I haven't used it myself.

@Peternator7 That makes sense, seems like it'd be a big win in that use case, and I could see myself really appreciating that feature.