Struct rin::ecs::Has [−][src]
pub struct Has<T> { /* fields omitted */ }
Operator that matches every entity that doe has this component without locking it’s storage
The selected data will have a () element in it’s position.
for (pos, _) in entities.iter_for::<(Read<Position>, Has<Velocity>)>(){ //... }
Will select all entities that have Position and Velocity
Trait Implementations
impl<'a, T> DataAccesses for Has<T> where
T: 'static,
[src]
impl<'a, T> DataAccesses for Has<T> where
T: 'static,
[src]impl<'_, T> FromComponent<'_, ()> for Has<T>
[src]
impl<'_, T> FromComponent<'_, ()> for Has<T>
[src]pub fn from_component(()) -> Has<T>
[src]
impl<'a, T> UnorderedData<'a> for Has<T> where
T: 'static,
[src]
impl<'a, T> UnorderedData<'a> for Has<T> where
T: 'static,
[src]type Iter = Repeat<()>
type IterMut = Repeat<()>
type Components = T
type ComponentsRef = ()
type Storage = StorageHas<'a, T>
pub fn query_mask<E>(entities: &E) -> Bitmask where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter<E>(&'a E) -> <Has<T> as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter_mut<E>(entities: &'a E) -> <Has<T> as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn storage<E>(
entities: &'a E
) -> Option<<Has<T> as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
[src]
entities: &'a E
) -> Option<<Has<T> as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
impl<'_, T> SafeIter<'_> for Has<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Has<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Has<T> where
T: Send,
T: Send,
impl<T> Sync for Has<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Has<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Has<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]