Trait CreateDrawable

Source
pub trait CreateDrawable<T: Clone> {
    // Required method
    fn from_obj(obj: T, draw_type: DrawType) -> Drawable<T>;
}

Required Methods§

Source

fn from_obj(obj: T, draw_type: DrawType) -> Drawable<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§