pub fn register_convert_raw(
        &mut self,
        src_type: ComponentTypeId,
        dst_type: ComponentTypeId,
        constructor: fn() -> Box<dyn UnknownComponentStorage>,
        duplicate_fn: Box<
            dyn FnMut(
                Range<usize>,
                &Archetype,
                &dyn UnknownComponentStorage,
                &mut ArchetypeWriter<'_>,
            ),
        >,
    ) {
        self.duplicate_fns
            .insert(src_type, (dst_type, constructor, duplicate_fn));
    }
/// Allows the merger to clone the given component into the destination world with a custom
/// clone function.
Allows the merger to clone the given component into the destination world with a custom
clone function.
Allows the merger to clone the given component into the destination world with a custom clone function .
pub fn register_convert_raw(
        &mut self,
        src_type: ComponentTypeId,
        dst_type: ComponentTypeId,
        constructor: fn() -> Box<dyn UnknownComponentStorage>,
        duplicate_fn: Box<
            dyn FnMut(
                Range<usize>,
                &Archetype,
                &dyn UnknownComponentStorage,
                &mut ArchetypeWriter<'_>,
            ),
        >,
    ) {
        self.duplicate_fns
            .insert(src_type, (dst_type, constructor, duplicate_fn));
    }
pub fn register_convert_raw ( & mut self , src_type : ComponentTypeId , dst_type : ComponentTypeId , constructor : fn ( ) -> Box < dyn UnknownComponentStorage > , duplicate_fn : Box < dyn FnMut ( Range < usize > , & Archetype , & dyn UnknownComponentStorage , & mut ArchetypeWriter < ' _ > , ) , > , ) { self . duplicate_fns . insert ( src_type , ( dst_type , constructor , duplicate_fn ) ) ; }
Allows the merger to clone the given component into the destination world with a custom
clone function.
Allows the merger to clone the given component into the destination world with a custom clone function .
&mut self
src_type
ComponentTypeId
dst_type
ComponentTypeId
constructor
fn() -> Box<dyn UnknownComponentStorage>
duplicate_fn
Box<
            dyn FnMut(
                Range<usize>,
                &Archetype,
                &dyn UnknownComponentStorage,
                &mut ArchetypeWriter<'_>,
            ),
        >
&mut self
src_type
ComponentTypeId
dst_type
ComponentTypeId
constructor
fn() -> Box<dyn UnknownComponentStorage>
duplicate_fn
Box<
            dyn FnMut(
                Range<usize>,
                &Archetype,
                &dyn UnknownComponentStorage,
                &mut ArchetypeWriter<'_>,
            ),
        >