pub struct LivestockKind {
pub product: Option<usize>,
pub interval: f32,
pub group: i32,
}Expand description
A livestock template’s LivestockDescription, resolved: the product’s pile template, every
interval × 300 s, and the stock slot.
Fields§
§product: Option<usize>The raw-material template it produces, if any.
interval: f32The time between products, in seconds.
group: i32The stock slot its product counts towards.
Trait Implementations§
Source§impl Clone for LivestockKind
impl Clone for LivestockKind
Source§fn clone(&self) -> LivestockKind
fn clone(&self) -> LivestockKind
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 LivestockKind
impl Debug for LivestockKind
Source§impl Default for LivestockKind
impl Default for LivestockKind
Source§fn default() -> LivestockKind
fn default() -> LivestockKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for LivestockKind
impl PartialEq for LivestockKind
impl StructuralPartialEq for LivestockKind
Auto Trait Implementations§
impl Freeze for LivestockKind
impl RefUnwindSafe for LivestockKind
impl Send for LivestockKind
impl Sync for LivestockKind
impl Unpin for LivestockKind
impl UnsafeUnpin for LivestockKind
impl UnwindSafe for LivestockKind
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