Struct rinecs::operators::ReadNot [−][src]
pub struct ReadNot<'a, T: Component, Not: 'static> where
<T as Component>::Storage: Storage<'s, T>, { /* fields omitted */ }
Operator that matches every entity that has the first component and not the second
It’s equivalent to Read + Not but more convenient cause it doesn’t return an extra empty component
for pos in entities.iter_for::<ReadNot<Position, Velocity>>(){ //... }
Will select all entities that have Position but no Velocity
Trait Implementations
impl<'a, T: ComponentSend, Not: 'static> ChangedData<'a> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
ReadGuardRef<'b, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: ChangedStorageExt<'a>,
[src]
impl<'a, T: ComponentSend, Not: 'static> ChangedData<'a> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
ReadGuardRef<'b, <T as Component>::Storage>: IntoIter,
<T as Component>::Storage: ChangedStorageExt<'a>,
[src]type ChangedIter = ChangedIter<'a, ReadGuardRef<'a, <T as Component>::Storage>>
fn changed_iter<E: EntitiesStorage>(entities: &'a E) -> Self::ChangedIter
[src]
impl<'a, T: Component, Not: 'static> DataAccesses for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component, Not: 'static> DataAccesses for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]impl<'a, T: Component, Not: 'static> Deref for ReadNot<'a, T, Not> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Borrow<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component, Not: 'static> Deref for ReadNot<'a, T, Not> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Borrow<<<T as Component>::Storage as Storage<'a, T>>::DerefTarget>,
<T as Component>::Storage: Storage<'s, T>,
[src]impl<'a, T: Component, Not: 'static> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component, Not: 'static> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]impl<'a, T: Component, Not: 'static> UnorderedData<'a> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]
impl<'a, T: Component, Not: 'static> UnorderedData<'a> for ReadNot<'a, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]type Iter = Iter<'a, T, Not, ReadGuardRef<'a, <T as Component>::Storage>, LazyIndexGuard<'a>>
type IterMut = Iter<'a, T, Not, ReadGuardRef<'a, <T as Component>::Storage>, LazyIndexGuard<'a>>
type Components = T
type ComponentsRef = <<T as Component>::Storage as Storage<'a, T>>::Get
type Storage = StorageReadNot<'a, T, ReadGuardRef<'a, <T as Component>::Storage>, Not, LazyIndexGuard<'a>>
fn query_mask<E: EntitiesStorage>(entities: &E) -> Bitmask
[src]
fn into_iter<E: EntitiesStorage>(entities: &'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: Component, Not> SafeIter<'_> for ReadNot<'_, T, Not> where
<T as Component>::Storage: Storage<'s, T>,
[src]
<T as Component>::Storage: Storage<'s, T>,
Auto Trait Implementations
impl<'a, T, Not> RefUnwindSafe for ReadNot<'a, T, Not> where
Not: RefUnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: RefUnwindSafe,
Not: RefUnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: RefUnwindSafe,
impl<'a, T, Not> Send for ReadNot<'a, T, Not> where
Not: Sync,
<<T as Component>::Storage as Storage<'a, T>>::Get: Send,
Not: Sync,
<<T as Component>::Storage as Storage<'a, T>>::Get: Send,
impl<'a, T, Not> Sync for ReadNot<'a, T, Not> where
Not: Sync,
<<T as Component>::Storage as Storage<'a, T>>::Get: Sync,
Not: Sync,
<<T as Component>::Storage as Storage<'a, T>>::Get: Sync,
impl<'a, T, Not> Unpin for ReadNot<'a, T, Not> where
<<T as Component>::Storage as Storage<'a, T>>::Get: Unpin,
<<T as Component>::Storage as Storage<'a, T>>::Get: Unpin,
impl<'a, T, Not> UnwindSafe for ReadNot<'a, T, Not> where
Not: RefUnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: UnwindSafe,
Not: RefUnwindSafe,
<<T as Component>::Storage as Storage<'a, T>>::Get: UnwindSafe,