Trait UserData

Source
pub trait UserData:
    Any
    + Send
    + Sync
    + 'static {
    // Required method
    fn as_any(&self) -> &(dyn Any + Send + Sync + 'static);
}

Required Methods§

Source

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

Trait Implementations§

Source§

impl AsRef<dyn Any + Send + Sync> for dyn UserData

Source§

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

Converts this type into a shared reference of the (usually inferred) input type.

Implementors§

Source§

impl<T> UserData for T
where T: Any + Send + Sync + 'static,