pub struct TechnologyUnit {
pub count: i64,
pub time: f64,
pub ingredients: &'static [TechnologyUnitIngredient],
}Expand description
Research cost block for a Technology (unit = { count, time, ingredients }).
Fields§
§count: i64How many lab cycles are required.
time: f64Seconds per cycle.
ingredients: &'static [TechnologyUnitIngredient]Science packs per cycle.
Trait Implementations§
Source§impl Clone for TechnologyUnit
impl Clone for TechnologyUnit
Source§fn clone(&self) -> TechnologyUnit
fn clone(&self) -> TechnologyUnit
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 TechnologyUnit
Source§impl Debug for TechnologyUnit
impl Debug for TechnologyUnit
Source§impl Default for TechnologyUnit
impl Default for TechnologyUnit
Source§fn default() -> TechnologyUnit
fn default() -> TechnologyUnit
Returns the “default value” for a type. Read more
Source§impl PartialEq for TechnologyUnit
impl PartialEq for TechnologyUnit
impl StructuralPartialEq for TechnologyUnit
Auto Trait Implementations§
impl Freeze for TechnologyUnit
impl RefUnwindSafe for TechnologyUnit
impl Send for TechnologyUnit
impl Sync for TechnologyUnit
impl Unpin for TechnologyUnit
impl UnsafeUnpin for TechnologyUnit
impl UnwindSafe for TechnologyUnit
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