pub trait Upcastable {
// Required methods
fn upcast_any_ref(&self) -> &(dyn Any + 'static);
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static);
fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>;
}
Expand description
Trait needed to get downcasting of Engine
s to work.
Required Methods§
Sourcefn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Sourcefn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
Sourcefn upcast_any_box(self: Box<Self>) -> Box<dyn Any>
fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>
upcast boxed dyn