[−][src]Struct specs::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,
[src]
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) -> (Self::Mask, Self::Value)
[src]
unsafe fn get((mask, value): &mut Self::Value, id: Index) -> Self::Type
[src]
fn is_unconstrained() -> bool
[src]
ⓘImportant traits for JoinIter<J>fn join(self) -> JoinIter<Self> where
Self: Sized,
[src]
Self: Sized,
Create a joined iterator over the contents.
fn maybe(self) -> MaybeJoin<Self> where
Self: Sized,
[src]
Self: Sized,
Returns a Join
-able structure that yields all indices, returning None
for all missing elements and Some(T)
for found elements. Read more
Auto Trait Implementations
impl<J> Unpin for MaybeJoin<J> where
J: Unpin,
J: Unpin,
impl<J> Sync for MaybeJoin<J> where
J: Sync,
J: Sync,
impl<J> Send for MaybeJoin<J> where
J: Send,
J: Send,
impl<J> UnwindSafe for MaybeJoin<J> where
J: UnwindSafe,
J: UnwindSafe,
impl<J> RefUnwindSafe for MaybeJoin<J> where
J: RefUnwindSafe,
J: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,