Struct oxygengine_core::ecs::pipeline::Without
source · pub struct Without<Q, R>(/* private fields */);
Expand description
Transforms query Q
by skipping entities satisfying query R
See also QueryBorrow::without
.
Example
let mut world = World::new();
let a = world.spawn((123, true, "abc"));
let b = world.spawn((456, false));
let c = world.spawn((42, "def"));
let entities = world.query::<Without<&i32, &bool>>()
.iter()
.map(|(e, &i)| (e, i))
.collect::<Vec<_>>();
assert_eq!(entities, &[(c, 42)]);
Trait Implementations§
Auto Trait Implementations§
impl<Q, R> RefUnwindSafe for Without<Q, R>where Q: RefUnwindSafe,
impl<Q, R> Send for Without<Q, R>where Q: Send,
impl<Q, R> Sync for Without<Q, R>where Q: Sync,
impl<Q, R> Unpin for Without<Q, R>where Q: Unpin,
impl<Q, R> UnwindSafe for Without<Q, R>where Q: 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