Replies: 1 comment
-
This is an interesting project, and could be something we look into in the future (or even roll out our own version of it built-in to the I have some hesitance with using something that the Rust team is not currently making efforts to support. We risk something breaking because Rust won't support it (I haven't really dived deep into the internals of this crate so maybe it's generally safe). And it only working with a single lifetime is also not ideal obviously. Along with the fact that |
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.
-
better_any is a crate that lets you get the
TypeId
for types that don't implementAny
because they contain non-static borrowed data. This only works on types with a single lifetime, but that's enough for most cases (even things like iterators). Using this crate would partially remove the most important limitation ofbevy_reflect
that all types have to be'static
.Beta Was this translation helpful? Give feedback.
All reactions