pub struct ProduceState {
pub disabled: bool,
pub selector: i32,
pub weights: Vec<f32>,
pub produced: i32,
}Expand description
ConsumeProduceComponent state (switched off, selector, weights, productions so far).
Fields§
§disabled: boolWhether production is switched off.
selector: i32The recipe chosen in the window.
weights: Vec<f32>The weight of each recipe, for choosing what to make.
produced: i32The productions so far.
Trait Implementations§
Source§impl Clone for ProduceState
impl Clone for ProduceState
Source§fn clone(&self) -> ProduceState
fn clone(&self) -> ProduceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProduceState
impl Debug for ProduceState
Source§impl Default for ProduceState
impl Default for ProduceState
Source§fn default() -> ProduceState
fn default() -> ProduceState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProduceState
impl RefUnwindSafe for ProduceState
impl Send for ProduceState
impl Sync for ProduceState
impl Unpin for ProduceState
impl UnsafeUnpin for ProduceState
impl UnwindSafe for ProduceState
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