pub struct Cloner { /* private fields */ }
Expand description
Collects component types which can be cloned or copied
Populating such an object with all used component types is required to use World::clone
.
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
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cloner
impl Send for Cloner
impl Sync for Cloner
impl Unpin for Cloner
impl UnwindSafe for Cloner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more