You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behaves like an ordinary Rust enum in all ways except that it enforces a wildcard match arm when matched (which is deliberate) and that it cannot be cast using as to a primitive (which is unfortunate).
We should expose some way to get the primitive value. Maybe a method, maybe just a straightforward public field like n.repr.
The text was updated successfully, but these errors were encountered:
#170 produces "enums" with a private integer representation, and public associated constants corresponding to the variants.
This behaves like an ordinary Rust enum in all ways except that it enforces a wildcard match arm when matched (which is deliberate) and that it cannot be cast using
as
to a primitive (which is unfortunate).We should expose some way to get the primitive value. Maybe a method, maybe just a straightforward public field like
n.repr
.The text was updated successfully, but these errors were encountered: