pub struct AreaWork {
pub claims: BTreeMap<i32, usize>,
pub need: Vec<bool>,
pub crop: Option<usize>,
}Expand description
The work of planting (PlantArea) or harvesting a field: the cells claimed (index → worker),
the cells still to do, and, for planting, the crop.
Fields§
§claims: BTreeMap<i32, usize>The cells claimed: cell index → worker.
need: Vec<bool>The cells still to do.
crop: Option<usize>The crop, for planting.
Trait Implementations§
impl StructuralPartialEq for AreaWork
Auto Trait Implementations§
impl Freeze for AreaWork
impl RefUnwindSafe for AreaWork
impl Send for AreaWork
impl Sync for AreaWork
impl Unpin for AreaWork
impl UnsafeUnpin for AreaWork
impl UnwindSafe for AreaWork
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