pub struct Has<T: 'static>(/* private fields */);Trait Implementations§
Source§impl<T: 'static> FetchComponents for Has<T>
impl<T: 'static> FetchComponents for Has<T>
Source§type Fetch<'w> = bool
type Fetch<'w> = bool
Per archetype/table state used by this
FetchComponents to fetch Self::ItemSource§type Item<'w> = bool
type Item<'w> = bool
The item returned by this
FetchComponentsSource§type State = Arc<Column>
type State = Arc<Column>
State used to construct a
Self::Fetch. This will be cached inside QueryState,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch.Source§fn init_state(world: &mut World, meta: &mut SystemMeta) -> Self::State
fn init_state(world: &mut World, meta: &mut SystemMeta) -> Self::State
initializes ReadWrite for this
FetchComponents type.Source§fn init_fetch<'w>(
_world: &'w World,
state: &'w Self::State,
index: ArchetypeIndex,
_tick: Tick,
_last_run: Tick,
) -> Self::Fetch<'w>
fn init_fetch<'w>( _world: &'w World, state: &'w Self::State, index: ArchetypeIndex, _tick: Tick, _last_run: Tick, ) -> Self::Fetch<'w>
Creates a new instance of this fetch. Read more
fn init_fetch_opt<'w>( world: &'w World, state: &'w Self::State, index: ArchetypeIndex, tick: Tick, last_run: Tick, ) -> Option<Self::Fetch<'w>>
Source§fn fetch<'w>(fetch: &Self::Fetch<'w>, _row: Row, _e: Entity) -> Self::Item<'w>
fn fetch<'w>(fetch: &Self::Fetch<'w>, _row: Row, _e: Entity) -> Self::Item<'w>
Fetch
Self::Item for either the given entity in the current [Table],
or for the given entity in the current [Archetype]. This must always be called after
[FetchComponents::set_table] with a table_row in the range of the current [Table] or after
[FetchComponents::set_archetype] with a entity in the current archetype. Read moreAuto Trait Implementations§
impl<T> Freeze for Has<T>
impl<T> RefUnwindSafe for Has<T>where
T: RefUnwindSafe,
impl<T> Send for Has<T>where
T: Send,
impl<T> Sync for Has<T>where
T: Sync,
impl<T> Unpin for Has<T>where
T: Unpin,
impl<T> UnwindSafe for Has<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> 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.