pub trait CloneBundle: Bundle + CloneBundle { }Expand description
Explicit tuple of zero to eight owned Clone + 'static component types.
Sealed to keep selected reads and spawned bundles consistent. See
World::plan_duplication for a complete actor-template recipe. Choose stored
component types rather than query access types, for example (Position, Health).
An Entity entry selects an explicitly stored Entity component, not identity.
Non-Clone components remain supported by ordinary bundles, but cannot be selected for duplication:
ⓘ
use ferravex_ecs::World;
struct AudioVoice;
let mut world = World::new();
let entity = world.spawn((AudioVoice,));
world.plan_duplication::<(AudioVoice,), 1>([entity]);Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.