Struct legion::world::Duplicate[][src]

pub struct Duplicate { /* fields omitted */ }
Expand description

A Merger which clones entities from the source world into the destination, potentially performing data transformations in the process.

Implementations

Creates a new duplicate merger.

Allows the merger to copy the given component into the destination world.

Allows the merger to clone the given component into the destination world.

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.

Trait Implementations

Returns the “default value” for a type. Read more

Calculates the destination entity layout for the given source layout.

Merges an archetype from the source world into the destination world.

Indicates if the merger prefers to merge into a new empty archetype.

Indicates how the merger wishes entity IDs to be adjusted while cloning a world.

Returns the ID to use in the destination world when cloning the given entity.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.