pub enum Not<Q>where
Q: ?Sized,{
// some variants omitted
}
Expand description
A Query
which matches if query Q
doesn’t match.
This type behaves like a unit struct. Use Not::<Q>
to create an
instance of this type.
Trait Implementations§
Source§impl<Q> Query for Not<Q>where
Q: Query,
impl<Q> Query for Not<Q>where
Q: Query,
Source§type Item<'a> = Not<Q>
type Item<'a> = Not<Q>
The item returned by this query. This is usually the same type as
Self
, but with a modified lifetime.Source§type State = <Q as Query>::State
type State = <Q as Query>::State
Cached data for fetch initialization, e.g. component indices.
Source§fn init(
world: &mut World,
config: &mut HandlerConfig,
) -> Result<(ComponentAccess, <Not<Q> as Query>::State), InitError>
fn init( world: &mut World, config: &mut HandlerConfig, ) -> Result<(ComponentAccess, <Not<Q> as Query>::State), InitError>
Initialize the query. Returns an expression describing the components
accessed by the query and a new instance of
Self::State
.Source§fn new_state(world: &mut World) -> <Not<Q> as Query>::State
fn new_state(world: &mut World) -> <Not<Q> as Query>::State
Returns a new
Self::State
instance.impl<Q> Copy for Not<Q>where
Q: ?Sized,
impl<Q> ReadOnlyQuery for Not<Q>where
Q: Query,
Auto Trait Implementations§
impl<Q> Freeze for Not<Q>where
Q: ?Sized,
impl<Q> RefUnwindSafe for Not<Q>where
Q: ?Sized,
impl<Q> Send for Not<Q>where
Q: ?Sized,
impl<Q> Sync for Not<Q>where
Q: ?Sized,
impl<Q> Unpin for Not<Q>where
Q: ?Sized,
impl<Q> UnwindSafe for Not<Q>where
Q: ?Sized,
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