[][src]Trait nphysics2d::utils::UserData

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

Trait to be implemented by user-defined data.

Required methods

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

Clone this trait-object.

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

Clone as its super-trait trait objects.

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

Downcast to Any.

Loading content...

Implementors

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

Loading content...