pub struct Has<Q> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl<Q> Ord for Has<Q>
impl<Q> Ord for Has<Q>
Source§impl<Q> PartialOrd for Has<Q>
impl<Q> PartialOrd for Has<Q>
Source§impl<Q> Query for Has<Q>where
Q: Query,
impl<Q> Query for Has<Q>where
Q: Query,
Source§type Item<'a> = Has<Q>
type Item<'a> = Has<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, <Has<Q> as Query>::State), InitError>
fn init( world: &mut World, config: &mut HandlerConfig, ) -> Result<(ComponentAccess, <Has<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) -> <Has<Q> as Query>::State
fn new_state(world: &mut World) -> <Has<Q> as Query>::State
Returns a new
Self::State
instance.impl<Q> Copy for Has<Q>
impl<Q> Eq for Has<Q>
impl<Q> ReadOnlyQuery for Has<Q>where
Q: Query,
Auto Trait Implementations§
impl<Q> Freeze for Has<Q>
impl<Q> RefUnwindSafe for Has<Q>
impl<Q> Send for Has<Q>
impl<Q> Sync for Has<Q>
impl<Q> Unpin for Has<Q>
impl<Q> UnwindSafe for Has<Q>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.