also publish on pypi
This commit is contained in:
1 parent
a3a40fecb4
commit
cbb135e13e
4 files changed
+122
-3
No files matched your search
@@ -2778,6 +2778,7 @@ macro_rules! impl_enum_variants {
|
||||
($($t:ty $(,)?)*) => {
|
||||
$(
|
||||
impl $t {
|
||||
/// all possible variants of this enum that can be constructed or converted into
|
||||
pub fn variants() -> Vec<Self> {
|
||||
Self::iter().collect::<Vec<_>>()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user