DynCloneDraw

Trait DynCloneDraw 

Source
pub trait DynCloneDraw {
    // Required method
    fn clone_box(&self) -> Box<dyn DrawCommand>;
}
Expand description

A trait that allows for cloning a trait object.

Required Methods§

Source

fn clone_box(&self) -> Box<dyn DrawCommand>

Creates a boxed clone of the trait object.

Implementors§

Source§

impl<T> DynCloneDraw for T
where T: DrawCommand + Clone + 'static,