pub struct Cost {
pub minerals: u32,
pub vespene: u32,
pub supply: f32,
pub time: f32,
}
Expand description
Cost of an item (UnitTypeId
or UpgradeId
) in resources, supply and time.
Fields§
§minerals: u32
§vespene: u32
§supply: f32
§time: f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
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