[][src]Trait oxygengine_physics_2d::prelude::utils::UserData

pub trait UserData: Send + Sync + Any {
    fn clone_boxed(&self) -> Box<dyn UserData + 'static>;
fn to_any(&self) -> Box<dyn Any + 'static + Sync + Send>;
fn as_any(&self) -> &(dyn Any + 'static + Sync + Send); }

Trait to be implemented by user-defined data.

Required methods

fn clone_boxed(&self) -> Box<dyn UserData + 'static>

Clone this trait-object.

fn to_any(&self) -> Box<dyn Any + 'static + Sync + Send>

Clone as its super-trait trait objects.

fn as_any(&self) -> &(dyn Any + 'static + Sync + Send)

Downcast to Any.

Loading content...

Implementors

impl<T> UserData for T where
    T: Clone + Send + Sync + Any
[src]

Loading content...