Hi,

I have a enum for example

enum A{
a = 0,
b = 1,
c = 2 }



what I want is :-
when I pass '2' , I can get c from it.

Is there some built-in for this or some other way.


Thanks,

Piyush
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to