pub struct AllEntitiesSelector;Expand description
An entity selector that iterates over all entities from all descriptors.
Implementations§
Trait Implementations§
Source§impl Clone for AllEntitiesSelector
impl Clone for AllEntitiesSelector
Source§fn clone(&self) -> AllEntitiesSelector
fn clone(&self) -> AllEntitiesSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllEntitiesSelector
impl Debug for AllEntitiesSelector
Source§impl Default for AllEntitiesSelector
impl Default for AllEntitiesSelector
Source§fn default() -> AllEntitiesSelector
fn default() -> AllEntitiesSelector
Returns the “default value” for a type. Read more
Source§impl<S: PlanningSolution> EntitySelector<S> for AllEntitiesSelector
impl<S: PlanningSolution> EntitySelector<S> for AllEntitiesSelector
Source§fn iter<'a>(
&'a self,
score_director: &'a dyn ScoreDirector<S>,
) -> Box<dyn Iterator<Item = EntityReference> + 'a>
fn iter<'a>( &'a self, score_director: &'a dyn ScoreDirector<S>, ) -> Box<dyn Iterator<Item = EntityReference> + 'a>
Returns an iterator over entity references. Read more
Source§fn size(&self, score_director: &dyn ScoreDirector<S>) -> usize
fn size(&self, score_director: &dyn ScoreDirector<S>) -> usize
Returns the approximate number of entities.
Source§fn is_never_ending(&self) -> bool
fn is_never_ending(&self) -> bool
Returns true if this selector may return the same entity multiple times.
Auto Trait Implementations§
impl Freeze for AllEntitiesSelector
impl RefUnwindSafe for AllEntitiesSelector
impl Send for AllEntitiesSelector
impl Sync for AllEntitiesSelector
impl Unpin for AllEntitiesSelector
impl UnwindSafe for AllEntitiesSelector
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