Trait reflect_steroids::DowncastReflect
source · [−]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
fn downcast_into_reflect(self: Box<Self>) -> Box<dyn Reflect>
fn downcast_into_reflect(self: Box<Self>) -> Box<dyn Reflect>
Convert Box<Self>
to Box<dyn Reflect>
.
fn downcast_into_reflect_rc(self: Rc<Self>) -> Rc<dyn Reflect>
fn downcast_into_reflect_rc(self: Rc<Self>) -> Rc<dyn Reflect>
Convert Rc<Self>
to Rc<dyn Reflect>
.
fn downcast_into_reflect_arc(self: Arc<Self>) -> Arc<dyn Reflect>
fn downcast_into_reflect_arc(self: Arc<Self>) -> Arc<dyn Reflect>
Convert Arc<Self>
to Arc<dyn Reflect>
.