pub trait DowncastReflect: Reflect {
    fn downcast_into_reflect(self: Box<Self>) -> Box<dyn Reflect>;
    fn downcast_into_reflect_rc(self: Rc<Self>) -> Rc<dyn Reflect>;
    fn downcast_into_reflect_arc(self: Arc<Self>) -> Arc<dyn Reflect>;
}
Expand description

Similar to the Downcast trait from [::downcast-rs], but using the Reflect trait instead of std::any::Any.

Required Methods

Convert Box<Self> to Box<dyn Reflect>.

Convert Rc<Self> to Rc<dyn Reflect>.

Convert Arc<Self> to Arc<dyn Reflect>.

Implementations on Foreign Types

Implementors