Struct rin::ecs::operators::Not [−][src]
pub struct Not<'a, T> where
T: 'static, { /* fields omitted */ }
Operator that matches every entity that doesn’t have this component
The selected data will have a () element in it’s position.
for (pos, _) in entities.iter_for::<(Read<Position>, Not<Velocity>)>(){ //... }
Will select all entities that have Position but no Velocity
Trait Implementations
impl<'a, T> DataAccesses for Not<'a, T> where
T: 'static,
[src]
impl<'a, T> DataAccesses for Not<'a, T> where
T: 'static,
[src]impl<'a, T> FromComponent<'a, ()> for Not<'a, T> where
T: 'static,
[src]
impl<'a, T> FromComponent<'a, ()> for Not<'a, T> where
T: 'static,
[src]pub fn from_component(()) -> Not<'a, T>
[src]
impl<'a, T> UnorderedData<'a> for Not<'a, T> where
T: 'static,
[src]
impl<'a, T> UnorderedData<'a> for Not<'a, T> where
T: 'static,
[src]type Iter = Repeat<()>
type IterMut = Repeat<()>
type Components = T
type ComponentsRef = ()
type Storage = StorageNot<'a, T>
pub fn query_mask<E>(entities: &E) -> Bitmask where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter<E>(&'a E) -> <Not<'a, T> as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter_mut<E>(
entities: &'a E
) -> <Not<'a, T> as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
entities: &'a E
) -> <Not<'a, T> as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
pub fn storage<E>(
entities: &'a E
) -> Option<<Not<'a, T> as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
[src]
entities: &'a E
) -> Option<<Not<'a, T> as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
impl<'_, '_, T> SafeIter<'_> for Not<'_, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Not<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Not<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for Not<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Not<'a, T>
impl<'a, T> UnwindSafe for Not<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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]