CompressBoxedClone

Trait CompressBoxedClone 

Source
pub trait CompressBoxedClone: Compress + Debug {
    // Required method
    fn boxed_clone(&self) -> Box<dyn CompressBoxedClone>;
}
Expand description

Your custom compression algorithm struct must be debugable and clonable. Implement this trait to keep the main configuration debugable and clonable.

Required Methods§

Source

fn boxed_clone(&self) -> Box<dyn CompressBoxedClone>

Clone your empty struct and return it as a new Box.

Implementors§