pub struct EntitySet<K>where
K: EntityRef,{ /* private fields */ }
Implementations§
Source§impl<K> EntitySet<K>where
K: EntityRef,
impl<K> EntitySet<K>where
K: EntityRef,
pub fn new() -> Self
pub fn contains(&self, k: K, pool: &EntitySetPool<K>) -> bool
pub fn size(&self, pool: &EntitySetPool<K>) -> usize
pub fn clear(&mut self, pool: &mut EntitySetPool<K>)
pub fn insert(&mut self, k: K, pool: &mut EntitySetPool<K>) -> bool
pub fn remove(&mut self, k: K, pool: &mut EntitySetPool<K>) -> bool
pub fn make_copy(&self, pool: &mut EntitySetPool<K>) -> EntitySet<K>
pub fn union_into(&mut self, other: &EntitySet<K>, pool: &mut EntitySetPool<K>)
pub fn subtract_from( &mut self, other: &EntitySet<K>, pool: &mut EntitySetPool<K>, )
pub fn union<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn union_other<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, rhs_pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn intersection<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn intersection_other<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, rhs_pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn difference<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn difference_other<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, rhs_pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn symmetric_difference<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn symmetric_difference_other<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, rhs_pool: &'a EntitySetPool<K>, ) -> impl Iterator<Item = K> + 'a
pub fn iter<'a>(&self, pool: &'a EntitySetPool<K>) -> EntitySetIter<'a, K> ⓘ
pub fn join<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, ) -> EntitySetJoinIter<'a, K> ⓘ
pub fn join_other<'a>( &self, rhs: &EntitySet<K>, pool: &'a EntitySetPool<K>, rhs_pool: &'a EntitySetPool<K>, ) -> EntitySetJoinIter<'a, K> ⓘ
pub fn eq(&self, other: &EntitySet<K>, pool: &EntitySetPool<K>) -> bool
pub fn eq_other( &self, other: &EntitySet<K>, pool: &EntitySetPool<K>, other_pool: &EntitySetPool<K>, ) -> bool
pub fn bind<'a>(&self, pool: &'a EntitySetPool<K>) -> BoundEntitySet<'a, K>
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for EntitySet<K>
impl<K> RefUnwindSafe for EntitySet<K>where
K: RefUnwindSafe,
impl<K> Send for EntitySet<K>where
K: Send,
impl<K> Sync for EntitySet<K>where
K: Sync,
impl<K> Unpin for EntitySet<K>where
K: Unpin,
impl<K> UnwindSafe for EntitySet<K>where
K: 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