pub struct Cloner { /* private fields */ }Expand description
Collects component types which can be cloned or copied
Implementations§
source§impl Cloner
impl Cloner
sourcepub fn add_cloneable<C>(&mut self)where
C: Clone + 'static,
pub fn add_cloneable<C>(&mut self)where C: Clone + 'static,
Adds a component type which is cloneable
If C is actually copyable, using [add_copyable] is more efficient.
sourcepub fn add_copyable<C>(&mut self)where
C: Copy + 'static,
pub fn add_copyable<C>(&mut self)where C: Copy + 'static,
Adds a component type which is copyable