pub struct With<T> { /* private fields */ }
Trait Implementations§
Source§impl<T: Ord> Ord for With<T>
impl<T: Ord> Ord for With<T>
Source§impl<T: PartialOrd> PartialOrd for With<T>
impl<T: PartialOrd> PartialOrd for With<T>
Source§impl<T: Component> WorldQuery for With<T>
impl<T: Component> WorldQuery for With<T>
type Item<'w> = ()
type Fetch<'w> = ()
type State = ComponentId
type ReadOnly = With<T>
Source§unsafe fn init_fetch<'w>(
_world: &'w World,
_state: &Self::State,
_last_change_tick: u32,
_change_tick: u32,
) -> Self::Fetch<'w>
unsafe fn init_fetch<'w>( _world: &'w World, _state: &Self::State, _last_change_tick: u32, _change_tick: u32, ) -> Self::Fetch<'w>
Safety Read more
Source§unsafe fn fetch<'w>(
_fetch: &mut Self::Fetch<'w>,
_entity: Entity,
) -> Self::Item<'w>
unsafe fn fetch<'w>( _fetch: &mut Self::Fetch<'w>, _entity: Entity, ) -> Self::Item<'w>
Fetch a single item from the given
fetch
and entity
.Source§fn init_state(world: &mut World) -> Self::State
fn init_state(world: &mut World) -> Self::State
Initialize the state required to fetch this query.
Source§fn update_component_access(
state: &Self::State,
access: &mut FilteredAccess<ComponentId>,
)
fn update_component_access( state: &Self::State, access: &mut FilteredAccess<ComponentId>, )
Update the component access for this query.
impl<T: Copy> Copy for With<T>
impl<T: Eq> Eq for With<T>
impl<T: Component> ReadOnlyWorldQuery for With<T>
impl<T> StructuralPartialEq for With<T>
Auto Trait Implementations§
impl<T> Freeze for With<T>
impl<T> RefUnwindSafe for With<T>where
T: RefUnwindSafe,
impl<T> Send for With<T>where
T: Send,
impl<T> Sync for With<T>where
T: Sync,
impl<T> Unpin for With<T>where
T: Unpin,
impl<T> UnwindSafe for With<T>where
T: 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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.