Skip to main content

UserData

Trait UserData 

Source
pub trait UserData: 'static {
    // Provided methods
    fn add_methods<M: UserDataMethods<Self>>(_methods: &mut M)
       where Self: Sized { ... }
    fn add_meta_methods<M: UserDataMethods<Self>>(_methods: &mut M)
       where Self: Sized { ... }
}

Provided Methods§

Source

fn add_methods<M: UserDataMethods<Self>>(_methods: &mut M)
where Self: Sized,

Source

fn add_meta_methods<M: UserDataMethods<Self>>(_methods: &mut M)
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§