pub struct StructureInfo {
pub level: usize,
pub production: Option<SystemProduction>,
pub builds: Option<IndexMap<StructureType, Cost>>,
}Expand description
Info for a specific structure
Lots of details are optional, as they don’t all apply to all structures
Fields§
§level: usizeLevel of the structure.
production: Option<SystemProduction>Production of the structure, if any.
builds: Option<IndexMap<StructureType, Cost>>Things that this structure can build, if any.
Trait Implementations§
Source§impl Clone for StructureInfo
impl Clone for StructureInfo
Source§fn clone(&self) -> StructureInfo
fn clone(&self) -> StructureInfo
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 StructureInfo
impl Debug for StructureInfo
Source§impl Default for StructureInfo
impl Default for StructureInfo
Source§fn default() -> StructureInfo
fn default() -> StructureInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructureInfo
impl RefUnwindSafe for StructureInfo
impl Send for StructureInfo
impl Sync for StructureInfo
impl Unpin for StructureInfo
impl UnsafeUnpin for StructureInfo
impl UnwindSafe for StructureInfo
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