pub struct Recipe {
pub inputs: Vec<(usize, i32)>,
pub output: usize,
pub output_material: usize,
pub group: i32,
}Expand description
A production alternative: inputs (raw material, count), the output pile template and its raw material, and the stock group the limit check reads.
Fields§
§inputs: Vec<(usize, i32)>What it uses: (raw material, count).
output: usizeThe template of the output pile.
output_material: usizeThe raw material of the output.
group: i32The stock group whose limit is checked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnsafeUnpin for Recipe
impl UnwindSafe for Recipe
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