pub struct TrackEntitiesWithComponent<C: 'static> { /* private fields */ }Expand description
Keep track of the entities that have a specific component on them.
You can’t add this directly to a world because Palkia doesn’t support generic Resources. Put it as a newtype struct.
Implementations§
Source§impl<C> TrackEntitiesWithComponent<C>where
C: Component + 'static,
impl<C> TrackEntitiesWithComponent<C>where
C: Component + 'static,
Trait Implementations§
Source§impl<C> Default for TrackEntitiesWithComponent<C>where
C: Component,
impl<C> Default for TrackEntitiesWithComponent<C>where
C: Component,
Source§impl<'de, C: 'static> Deserialize<'de> for TrackEntitiesWithComponent<C>
impl<'de, C: 'static> Deserialize<'de> for TrackEntitiesWithComponent<C>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<C> Freeze for TrackEntitiesWithComponent<C>
impl<C> RefUnwindSafe for TrackEntitiesWithComponent<C>where
C: RefUnwindSafe,
impl<C> Send for TrackEntitiesWithComponent<C>where
C: Send,
impl<C> Sync for TrackEntitiesWithComponent<C>where
C: Sync,
impl<C> Unpin for TrackEntitiesWithComponent<C>where
C: Unpin,
impl<C> UnwindSafe for TrackEntitiesWithComponent<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more