Trait oxygengine_physics_2d::prelude::utils::UserData
source · pub trait UserData: Any + Send + Sync {
// Required methods
fn clone_boxed(&self) -> Box<dyn UserData, Global>;
fn to_any(&self) -> Box<dyn Any + Sync + Send, Global>;
fn as_any(&self) -> &(dyn Any + Sync + Send + 'static);
}
Expand description
Trait to be implemented by user-defined data.
Required Methods§
sourcefn clone_boxed(&self) -> Box<dyn UserData, Global>
fn clone_boxed(&self) -> Box<dyn UserData, Global>
Clone this trait-object.