Trait Drawing

Source
pub trait Drawing:
    Sync
    + Send
    + 'static {
    // Required method
    fn get_tessellation(&self) -> Tessellation;

    // Provided methods
    fn get_mesh(&self) -> Mesh { ... }
    fn animate<A: AnimationKind>(&self, animation: A) -> PackedAnimation { ... }
}

Required Methods§

Provided Methods§

Source

fn get_mesh(&self) -> Mesh

Source

fn animate<A: AnimationKind>(&self, animation: A) -> PackedAnimation

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§