pub struct EntitySet<'a, E: Entity>(/* private fields */);Expand description
Opaque public wrapper around the internal set-expression tree.
Implementations§
Source§impl<'a, E: Entity> EntitySet<'a, E>
impl<'a, E: Entity> EntitySet<'a, E>
pub fn union(self, other: Self) -> Self
pub fn intersection(self, other: Self) -> Self
pub fn difference(self, other: Self) -> Self
Sourcepub fn contains(&self, entity_id: EntityId<E>) -> bool
pub fn contains(&self, entity_id: EntityId<E>) -> bool
Test whether entity_id is a member of this set.
Sourcepub fn to_owned_vec(self) -> Vec<EntityId<E>>
pub fn to_owned_vec(self) -> Vec<EntityId<E>>
Collect this set’s contents into an owned vector of EntityId<E>.
Trait Implementations§
Source§impl<'a, E: Entity> IntoIterator for EntitySet<'a, E>
impl<'a, E: Entity> IntoIterator for EntitySet<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for EntitySet<'a, E>
impl<'a, E> !RefUnwindSafe for EntitySet<'a, E>
impl<'a, E> !Send for EntitySet<'a, E>
impl<'a, E> !Sync for EntitySet<'a, E>
impl<'a, E> Unpin for EntitySet<'a, E>where
E: Unpin,
impl<'a, E> !UnwindSafe for EntitySet<'a, E>
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