Type Alias oxygengine::prelude::Grid2dCommonAreas
source · pub type Grid2dCommonAreas = (Range<(usize, usize)>, Range<(usize, usize)>);
Trait Implementations§
source§impl<A, B> AccessType for (A, B)where
A: AccessType,
B: AccessType,
impl<A, B> AccessType for (A, B)where A: AccessType, B: AccessType,
fn feed_types( reads: &mut HashSet<TypeId, RandomState>, writes: &mut HashSet<TypeId, RandomState> )
source§fn get_types() -> (HashSet<TypeId, RandomState>, HashSet<TypeId, RandomState>)
fn get_types() -> (HashSet<TypeId, RandomState>, HashSet<TypeId, RandomState>)
([reads], [writes])
§impl<A, B> DataStackPack for (A, B)where
A: 'static,
B: 'static,
impl<A, B> DataStackPack for (A, B)where A: 'static, B: 'static,
fn stack_push(self, stack: &mut DataStack)
fn stack_pop(stack: &mut DataStack) -> (A, B)
fn pack_types() -> Vec<TypeHash, Global>
fn stack_push_reversed(self, stack: &mut DataStack)
§impl<B, A> DynamicBundle for (B, A)where
B: Component,
A: Component,
impl<B, A> DynamicBundle for (B, A)where B: Component, A: Component,
§impl<B, A> Fetch for (B, A)where
B: Fetch,
A: Fetch,
impl<B, A> Fetch for (B, A)where B: Fetch, A: Fetch,
§type State = (<B as Fetch>::State, <A as Fetch>::State)
type State = (<B as Fetch>::State, <A as Fetch>::State)
The type of the data which can be cached to speed up retrieving
the relevant type states from a matching
Archetype
§fn borrow(archetype: &Archetype, state: <(B, A) as Fetch>::State)
fn borrow(archetype: &Archetype, state: <(B, A) as Fetch>::State)
Acquire dynamic borrows from
archetype
§fn prepare(archetype: &Archetype) -> Option<<(B, A) as Fetch>::State>
fn prepare(archetype: &Archetype) -> Option<<(B, A) as Fetch>::State>
Look up state for
archetype
if it should be traversed§fn execute(archetype: &Archetype, state: <(B, A) as Fetch>::State) -> (B, A)
fn execute(archetype: &Archetype, state: <(B, A) as Fetch>::State) -> (B, A)
Construct a
Fetch
for archetype
based on the associated state§fn release(archetype: &Archetype, state: <(B, A) as Fetch>::State)
fn release(archetype: &Archetype, state: <(B, A) as Fetch>::State)
Release dynamic borrows acquired by
borrow
§fn for_each_borrow(f: impl FnMut(TypeId, bool))
fn for_each_borrow(f: impl FnMut(TypeId, bool))
Invoke
f
for every component type that may be borrowed and whether the borrow is unique