Struct oxygengine_core::ecs::join::MaybeJoin [−][src]
pub struct MaybeJoin<J>(pub J)
where
J: Join;
A Join
-able structure that yields all indices, returning None
for all
missing elements and Some(T)
for found elements.
For usage see Join::maybe()
.
WARNING: Do not have a join of only MaybeJoin
s. Otherwise the join will
iterate over every single index of the bitset. If you want a join with
all MaybeJoin
s, add an EntitiesRes
to the join as well to bound the
join to all entities that are alive.
Trait Implementations
impl<T> Join for MaybeJoin<T> where
T: Join,
[src]
impl<T> Join for MaybeJoin<T> where
T: Join,
[src]type Mask = BitSetAll
Type of joined bit mask.
type Type = Option<<T as Join>::Type>
Type of joined components.
type Value = (<T as Join>::Mask, <T as Join>::Value)
Type of joined storages.
pub unsafe fn open(
self
) -> (<MaybeJoin<T> as Join>::Mask, <MaybeJoin<T> as Join>::Value)
[src]
self
) -> (<MaybeJoin<T> as Join>::Mask, <MaybeJoin<T> as Join>::Value)
pub unsafe fn get(
&mut <MaybeJoin<T> as Join>::Value,
id: u32
) -> <MaybeJoin<T> as Join>::Type
[src]
&mut <MaybeJoin<T> as Join>::Value,
id: u32
) -> <MaybeJoin<T> as Join>::Type
pub fn is_unconstrained() -> bool
[src]
pub fn join(self) -> JoinIter<Self>ⓘ
[src]
pub fn maybe(self) -> MaybeJoin<Self>
[src]
Auto Trait Implementations
impl<J> RefUnwindSafe for MaybeJoin<J> where
J: RefUnwindSafe,
impl<J> RefUnwindSafe for MaybeJoin<J> where
J: RefUnwindSafe,
impl<J> UnwindSafe for MaybeJoin<J> where
J: UnwindSafe,
impl<J> UnwindSafe for MaybeJoin<J> where
J: UnwindSafe,