could EnumIter be recursive ? #265
VirgileHenry
started this conversation in
Ideas
Replies: 2 comments
-
Having the same problem, recursiveness is too restrictive without some attribute |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've created an issue (and a PR for this) #424 So yeah, I guess you could push a like button there/add your use case |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be useful / meaningful to have the EnumIter to work recursively if enum data have this trait too ?
Something like :
`
#[derive(EnumIter)]
enum E1 {
A,
B,
}
#[derive(EnumIter)]
enum E2 {
C(E1)
}
for v in E2::iter() {
println!("{v:?}"); // C(A), C(B),
}
`
Beta Was this translation helpful? Give feedback.
All reactions