pub enum EpochOf<T: ?Sized> {
EpochOf,
// some variants omitted
}Expand description
Query for fetching epochs of a component.
Variants§
EpochOf
Instance of this type.
Implementations§
Trait Implementations§
impl<T: ?Sized> Copy for EpochOf<T>
Source§impl<T> DefaultQuery for EpochOf<T>where
T: 'static,
impl<T> DefaultQuery for EpochOf<T>where
T: 'static,
Source§fn default_query() -> Self
fn default_query() -> Self
Returns default query instance.
Source§impl<T> ImmutableQuery for EpochOf<T>where
T: 'static,
impl<T> ImmutableQuery for EpochOf<T>where
T: 'static,
Source§const CHECK_VALID: () = _
const CHECK_VALID: () = _
Checks that query is valid in compile time.
Source§impl<T> IntoQuery for EpochOf<T>where
T: 'static,
impl<T> IntoQuery for EpochOf<T>where
T: 'static,
Source§fn into_query(self) -> Self
fn into_query(self) -> Self
Converts into query.
Source§impl<T> Query for EpochOf<T>where
T: 'static,
impl<T> Query for EpochOf<T>where
T: 'static,
Source§type Fetch<'a> = FetchEpoch<'a>
type Fetch<'a> = FetchEpoch<'a>
Fetch value type for this query type.
Contains data from one archetype.
Source§fn component_access(
&self,
comp: &ComponentInfo,
) -> Result<Option<Access>, WriteAlias>
fn component_access( &self, comp: &ComponentInfo, ) -> Result<Option<Access>, WriteAlias>
Returns what kind of access the query performs on the component type.
This method may return stronger access type if it is impossible to know
exact access with only type-id.
Source§fn visit_archetype(&self, archetype: &Archetype) -> bool
fn visit_archetype(&self, archetype: &Archetype) -> bool
Checks if archetype must be visited or skipped.
If returns
false, access_archetype and fetch must not be called,
meaning that complex query should either skip archetype entirely or
for this query specifically. Read moreSource§unsafe fn access_archetype(
&self,
_archetype: &Archetype,
f: impl FnMut(TypeId, Access),
)
unsafe fn access_archetype( &self, _archetype: &Archetype, f: impl FnMut(TypeId, Access), )
Asks query to provide types and access for the specific archetype.
Must call provided closure with type id and access pairs.
Only types from archetype must be used to call closure. Read more
Source§unsafe fn fetch<'a>(
&self,
_arch_idx: u32,
archetype: &'a Archetype,
_epoch: EpochId,
) -> FetchEpoch<'a>
unsafe fn fetch<'a>( &self, _arch_idx: u32, archetype: &'a Archetype, _epoch: EpochId, ) -> FetchEpoch<'a>
Fetches data from one archetype. Read more
Source§const FILTERS_ENTITIES: bool = false
const FILTERS_ENTITIES: bool = false
Set to
true if query filters individual entities.impl<T> SendQuery for EpochOf<T>where
T: 'static,
Auto Trait Implementations§
impl<T> Freeze for EpochOf<T>where
T: ?Sized,
impl<T> RefUnwindSafe for EpochOf<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for EpochOf<T>where
T: ?Sized,
impl<T> Sync for EpochOf<T>where
T: ?Sized,
impl<T> Unpin for EpochOf<T>where
T: ?Sized,
impl<T> UnsafeUnpin for EpochOf<T>where
T: ?Sized,
impl<T> UnwindSafe for EpochOf<T>where
T: RefUnwindSafe + ?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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<Q> DefaultSendQuery for Qwhere
Q: DefaultQuery + AsSendQuery,
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_: &World) -> T
fn from_world(_: &World) -> T
Returns new value created from
World reference.