pub trait Bundle:
'static
+ Send
+ Sync {
// Required methods
fn type_ids() -> Vec<TypeId>;
fn register_columns(arch: &mut Archetype);
fn insert_into(self, arch: &mut Archetype, tick: u32);
}Expand description
A heterogeneous set of components spawned together.
Required Methods§
Sourcefn register_columns(arch: &mut Archetype)
fn register_columns(arch: &mut Archetype)
Ensure all columns exist on arch.
Sourcefn insert_into(self, arch: &mut Archetype, tick: u32)
fn insert_into(self, arch: &mut Archetype, tick: u32)
Push all components into arch.
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.