pub trait GameObjectBoxClone {
// Required method
fn clone_game_object(&self) -> Box<dyn GameObject>;
}Expand description
Allows Box
Required Methods§
fn clone_game_object(&self) -> Box<dyn GameObject>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".