Skip to main content

TransformerClone

Trait TransformerClone 

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

Clone support for boxed transformers (the object-safe half of Clone).

Required Methods§

Source

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

Clone self into a fresh box.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> TransformerClone for T
where T: Transformer + Clone + 'static,