[−][src]Trait glerminal::menu_systems::InterfaceItemClone
Represents a cloneable InterfaceItem; You should never implement this yourself, but instead derive Clone for all InterfaceItems.
E.g.
#[derive(Clone)] pub struct Test {} // Now you can implement only InterfaceItem safely to Test
Required methods
fn clone_box(&self) -> Box<dyn InterfaceItem>
Make a box of the cloned InterfaceItem
Implementors
impl<T: 'static + InterfaceItem + Clone> InterfaceItemClone for T
[src]
impl<T: 'static + InterfaceItem + Clone> InterfaceItemClone for T
fn clone_box(&self) -> Box<dyn InterfaceItem> | [src] |