[−]Struct oxygengine::core::ecs::join::MaybeJoin
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,
T: Join,
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.
unsafe fn open(
self
) -> (<MaybeJoin<T> as Join>::Mask, <MaybeJoin<T> as Join>::Value)
self
) -> (<MaybeJoin<T> as Join>::Mask, <MaybeJoin<T> as Join>::Value)
unsafe fn get(
&mut <MaybeJoin<T> as Join>::Value,
id: u32
) -> <MaybeJoin<T> as Join>::Type
&mut <MaybeJoin<T> as Join>::Value,
id: u32
) -> <MaybeJoin<T> as Join>::Type
fn is_unconstrained() -> bool
fn join(self) -> JoinIter<Self>ⓘ
fn maybe(self) -> MaybeJoin<Self>
Auto Trait Implementations
impl<J> RefUnwindSafe for MaybeJoin<J> where
J: RefUnwindSafe,
J: RefUnwindSafe,
impl<J> Send for MaybeJoin<J> where
J: Send,
J: Send,
impl<J> Sync for MaybeJoin<J> where
J: Sync,
J: Sync,
impl<J> Unpin for MaybeJoin<J> where
J: Unpin,
J: Unpin,
impl<J> UnwindSafe for MaybeJoin<J> where
J: UnwindSafe,
J: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,