Trait oxygengine_physics_2d::prelude::utils::UserData [−][src]
pub trait UserData: Any + Send + Sync { pub fn clone_boxed(&self) -> Box<dyn UserData + 'static, Global>; pub fn to_any(&self) -> Box<dyn Any + 'static + Sync + Send, Global>; pub fn as_any(&self) -> &(dyn Any + 'static + Sync + Send); }
Trait to be implemented by user-defined data.
Required methods
pub fn clone_boxed(&self) -> Box<dyn UserData + 'static, Global>
[src]
Clone this trait-object.
pub fn to_any(&self) -> Box<dyn Any + 'static + Sync + Send, Global>
[src]
Clone as its super-trait trait objects.
pub fn as_any(&self) -> &(dyn Any + 'static + Sync + Send)
[src]
Downcast to Any.
Implementors
Loading content...