pub struct TechnologyUnitIngredient {
pub name: &'static str,
pub amount: i64,
}Expand description
Science-pack entry for a TechnologyUnit.
Emitted as a Factorio research ingredient tuple { "pack-name", amount }.
Fields§
§name: &'static strTool / science-pack item name (e.g. "automation-science-pack").
amount: i64Count consumed per research unit.
Trait Implementations§
Source§impl Clone for TechnologyUnitIngredient
impl Clone for TechnologyUnitIngredient
Source§fn clone(&self) -> TechnologyUnitIngredient
fn clone(&self) -> TechnologyUnitIngredient
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 moreimpl Copy for TechnologyUnitIngredient
Source§impl Debug for TechnologyUnitIngredient
impl Debug for TechnologyUnitIngredient
Source§impl Default for TechnologyUnitIngredient
impl Default for TechnologyUnitIngredient
Source§fn default() -> TechnologyUnitIngredient
fn default() -> TechnologyUnitIngredient
Returns the “default value” for a type. Read more
impl Eq for TechnologyUnitIngredient
Source§impl PartialEq for TechnologyUnitIngredient
impl PartialEq for TechnologyUnitIngredient
impl StructuralPartialEq for TechnologyUnitIngredient
Auto Trait Implementations§
impl Freeze for TechnologyUnitIngredient
impl RefUnwindSafe for TechnologyUnitIngredient
impl Send for TechnologyUnitIngredient
impl Sync for TechnologyUnitIngredient
impl Unpin for TechnologyUnitIngredient
impl UnsafeUnpin for TechnologyUnitIngredient
impl UnwindSafe for TechnologyUnitIngredient
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