pub struct SpawnableTag<T: SceneType + 'static> {
    pub spawnable_id: T::SpawnableIdType,
}

Fields

spawnable_id: T::SpawnableIdType

Trait Implementations

Whether to maintain insertion order when removing components. By default, the slower method that maintains ordering is used. The performance penalty is based on the size of the data in the component type, so it is a good idea to disable this for larger components that don’t need strict ordering, as the faster swap removal method is used. Keep in mind that this will disturb the iteration order of the components in the store. Read more

How many components of this type that memory should be reserved for in advance.

The priority used to determine which component types are added to the scene first when doing deferred spawns. Lower numbers are added first. Read more

Reference type to return when retrieving or iterating over the component via ComponentStore

Used to get a reference type for this object when retrieving or iterating over the component via ComponentStore Read more

Reference type to return when mutably retrieving or iterating over the component via ComponentStore

Used to get a mutable reference type for this object when retrieving or iterating over the component via ComponentStore Read more

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.