pub enum EntityBundleIndices<I: EntityId> {
Single(I),
Array(EntityRange<I>),
}Expand description
Indices occupied by a given bundle.
Variants§
Single(I)
Singular index occupied by a unit-shaped bundle.
Array(EntityRange<I>)
Range of indices occupied by an array-shaped bundle.
Trait Implementations§
impl<I: Copy + EntityId> Copy for EntityBundleIndices<I>
impl<I: Eq + EntityId> Eq for EntityBundleIndices<I>
Source§impl<I: EntityId> From<EntityRange<I>> for EntityBundleIndices<I>
impl<I: EntityId> From<EntityRange<I>> for EntityBundleIndices<I>
Source§fn from(value: EntityRange<I>) -> Self
fn from(value: EntityRange<I>) -> Self
Converts to this type from the input type.
Source§impl<I: EntityId> From<I> for EntityBundleIndices<I>
impl<I: EntityId> From<I> for EntityBundleIndices<I>
impl<I: PartialEq + EntityId> StructuralPartialEq for EntityBundleIndices<I>
Auto Trait Implementations§
impl<I> Freeze for EntityBundleIndices<I>where
I: Freeze,
impl<I> RefUnwindSafe for EntityBundleIndices<I>where
I: RefUnwindSafe,
impl<I> Send for EntityBundleIndices<I>
impl<I> Sync for EntityBundleIndices<I>
impl<I> Unpin for EntityBundleIndices<I>where
I: Unpin,
impl<I> UnsafeUnpin for EntityBundleIndices<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for EntityBundleIndices<I>where
I: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.