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
By "visibility", I'm referring to pub, pub(crate), etc. I have an enum that I want to keep crate-scoped, but I'd like to generate discriminants and have those discriminants be exported publicly. Perhaps it could be another property in #[strum_discriminants], such as: #[strum_discriminants(vis(pub))]?
The text was updated successfully, but these errors were encountered:
#138)
* Adding vis to EnumDiscriminants (#137)
* Improved doctest example names (#137)
* Fixing incorrect occurrence_error attr string
* Using r#pub on doctest
* Adding tests for discriminant visibility, and rustc-cfg for bare "pub"
* Doing local import with "self::"
* Back to having tests pass on latest stable
* Moved sample doctest with vis example to separate nocompile block
By "visibility", I'm referring to
pub
,pub(crate)
, etc. I have an enum that I want to keep crate-scoped, but I'd like to generate discriminants and have those discriminants be exported publicly. Perhaps it could be another property in#[strum_discriminants]
, such as:#[strum_discriminants(vis(pub))]
?The text was updated successfully, but these errors were encountered: