pub struct CropField {
pub enabled: bool,
pub piles: bool,
pub crop: Option<usize>,
pub cells: Vec<CropCell>,
}Expand description
CropFieldComponent.
Fields§
§enabled: boolFarming on (the field’s toggle).
piles: boolThe crop leaves piles (its natural resource names a raw material).
crop: Option<usize>The crop (natural-resource template), chosen in the field’s window.
cells: Vec<CropCell>The field’s cells.
Trait Implementations§
impl StructuralPartialEq for CropField
Auto Trait Implementations§
impl Freeze for CropField
impl RefUnwindSafe for CropField
impl Send for CropField
impl Sync for CropField
impl Unpin for CropField
impl UnsafeUnpin for CropField
impl UnwindSafe for CropField
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