DynCloneCompute

Trait DynCloneCompute 

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

A trait that allows for cloning a trait object.

Required Methods§

Source

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

Creates a boxed clone of the trait object.

Implementors§

Source§

impl<T> DynCloneCompute for T
where T: ComputeCommand + Clone + 'static,