pub struct AssignmentResult {
pub decisions: Vec<(EntityId, DispatchDecision)>,
}Expand description
Resolution of a single dispatch assignment pass for one group.
Produced by [assign] and consumed by
[crate::systems::dispatch::run] to apply decisions to the world.
Fields§
§decisions: Vec<(EntityId, DispatchDecision)>(car, decision) pairs for every idle car in the group.
Trait Implementations§
Source§impl Clone for AssignmentResult
impl Clone for AssignmentResult
Source§fn clone(&self) -> AssignmentResult
fn clone(&self) -> AssignmentResult
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 moreAuto Trait Implementations§
impl Freeze for AssignmentResult
impl RefUnwindSafe for AssignmentResult
impl Send for AssignmentResult
impl Sync for AssignmentResult
impl Unpin for AssignmentResult
impl UnsafeUnpin for AssignmentResult
impl UnwindSafe for AssignmentResult
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