Hi there, I've got a type-level question, where I would like to build a nice API, but don't know how to.
Maybe it's not even possible
I have a
Vec<SomeEnum> and each variant contains another type. Now I'd like to be able to filter by type somehow so tat I can say
my_vec.get::<Thing> and I get a Vec of just the
Things in there.
Is that even possible? Is there maybe already a crate that does this? Am I just overslept and there is a trivial other way of doing this?
Thanks a bunch and happy holidays everybody!