typestate-rs icon indicating copy to clipboard operation
typestate-rs copied to clipboard

Implement conversion from non-det transitions to enumeration

Open lopsided98 opened this issue 3 years ago • 2 comments

Implement From conversions from non-deterministic transition enums to the state enum, if enabled. This makes it a lot nicer to work with non-deterministic transitions.

I've never worked on a proc macro before, so I'm not sure if my implementation is the best.

lopsided98 avatar Nov 25 '22 21:11 lopsided98

Hey @lopsided98, thank you for investing some time and contributing! Before I proceed with review, could you provide some tests over your feature? You can take a look at the existing ones in /tests.

Let me know if you have further questions!

jmg-duarte avatar Nov 26 '22 19:11 jmg-duarte

I added a simple test. Let me know what you think.

lopsided98 avatar Dec 10 '22 03:12 lopsided98