Struct rinecs::operators::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: 'static> DataAccesses for Has<T>
[src]
impl<'a, T: 'static> DataAccesses for Has<T>
[src]impl<T> FromComponent<'_, ()> for Has<T>
[src]
impl<T> FromComponent<'_, ()> for Has<T>
[src]fn from_component(_: ()) -> Has<T>
[src]
impl<'a, T: 'static> UnorderedData<'a> for Has<T>
[src]
impl<'a, T: 'static> UnorderedData<'a> for Has<T>
[src]type Iter = Repeat<()>
type IterMut = Repeat<()>
type Components = T
type ComponentsRef = ()
type Storage = StorageHas<'a, T>
fn query_mask<E: EntitiesStorage>(entities: &E) -> Bitmask
[src]
fn into_iter<E: EntitiesStorage>(_: &'a E) -> Self::Iter
[src]
fn into_iter_mut<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn storage<E: EntitiesStorage>(entities: &'a E) -> Option<Self::Storage>
[src]
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,