Skip to main content

HasUserData

Trait HasUserData 

Source
pub trait HasUserData {
    // Required method
    fn user_data(&self) -> UserData;
}
Expand description

A trait that defines how to extract user data from a given type.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§