-
-
Couldn't load subscription status.
- Fork 4.2k
Description
As seen in https://dev-docs.bevy.org/bevy/reflect/index.html#converting-between-partialreflect-and-reflect:
Since T: Reflect implies T: PartialReflect, conversion from a dyn Reflect to a dyn PartialReflect trait object (upcasting) is infallible and can be performed with one of the following methods. Note that these are temporary while the language feature for dyn upcasting coercion is experimental:
PartialReflect::as_partial_reflect for &dyn PartialReflect
PartialReflect::as_partial_reflect_mut for &mut dyn PartialReflect
PartialReflect::into_partial_reflect for Box
However, rust-lang/rust#65991 is closed! This was added in Rust 1.86.
We should remove these methods, and update the docs to explain the simpler language-supported mechanism for this.