[][src]Trait glerminal::menu_systems::InterfaceItemClone

pub trait InterfaceItemClone {
    fn clone_box(&self) -> Box<dyn InterfaceItem>;
}

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

Loading content...

Implementors

impl<T: 'static + InterfaceItem + Clone> InterfaceItemClone for T
[src]

Loading content...