could EnumIter be recursive ? #265
VirgileHenry
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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