Struct keeshond_treats::spawnable::SpawnableTag
source · [−]pub struct SpawnableTag<T: SceneType + 'static> {
pub spawnable_id: T::SpawnableIdType,
}
Fields
spawnable_id: T::SpawnableIdType
Trait Implementations
sourceimpl<T: SceneType + 'static> Component for SpawnableTag<T>
impl<T: SceneType + 'static> Component for SpawnableTag<T>
sourcefn maintain_ordering() -> bool where
Self: Sized,
fn maintain_ordering() -> bool where
Self: Sized,
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
sourcefn capacity_hint() -> usize
fn capacity_hint() -> usize
How many components of this type that memory should be reserved for in advance.
sourcefn add_priority() -> i32
fn add_priority() -> i32
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
sourceimpl<'component, T: SceneType + 'static> ComponentRef<'component> for SpawnableTag<T>
impl<'component, T: SceneType + 'static> ComponentRef<'component> for SpawnableTag<T>
type StoreRef = &'component SpawnableTag<T>
type StoreRef = &'component SpawnableTag<T>
Reference type to return when retrieving or iterating over the component via ComponentStore
sourcefn store_get(&'component self) -> Self::StoreRef
fn store_get(&'component self) -> Self::StoreRef
Used to get a reference type for this object when retrieving or iterating over the component via ComponentStore Read more
sourceimpl<'component, T: SceneType + 'static> ComponentRefMut<'component> for SpawnableTag<T>
impl<'component, T: SceneType + 'static> ComponentRefMut<'component> for SpawnableTag<T>
type StoreRefMut = &'component mut SpawnableTag<T>
type StoreRefMut = &'component mut SpawnableTag<T>
Reference type to return when mutably retrieving or iterating over the component via ComponentStore
sourcefn store_get_mut(&'component mut self) -> Self::StoreRefMut
fn store_get_mut(&'component mut self) -> Self::StoreRefMut
Used to get a mutable reference type for this object when retrieving or iterating over the component via ComponentStore Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for SpawnableTag<T> where
<T as SceneType>::SpawnableIdType: RefUnwindSafe,
impl<T> Send for SpawnableTag<T> where
<T as SceneType>::SpawnableIdType: Send,
impl<T> Sync for SpawnableTag<T> where
<T as SceneType>::SpawnableIdType: Sync,
impl<T> Unpin for SpawnableTag<T> where
<T as SceneType>::SpawnableIdType: Unpin,
impl<T> UnwindSafe for SpawnableTag<T> where
<T as SceneType>::SpawnableIdType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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