Trait MacBoxClone

Source
pub trait MacBoxClone {
    // Required method
    fn box_clone(&self) -> Box<dyn Mac>;
}
Expand description

Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.

Required Methods§

Source

fn box_clone(&self) -> Box<dyn Mac>

Implementors§

Source§

impl<T> MacBoxClone for T
where T: 'static + Mac + Clone,

Default implementation of the box-clone trait bound for any underlying concrete type that implements Clone.