pub struct TownStatus {
pub adults: u32,
pub students: u32,
pub children: u32,
pub counts: [u32; 6],
pub health: f32,
pub happiness: f32,
}Expand description
The status bar’s counts: adults, students, children and the other values.
Fields§
§adults: u32The adults.
students: u32The students.
children: u32The children.
counts: [u32; 6]The citizens with each of the first six status icons.
health: f32The mean health.
happiness: f32The mean happiness.
Trait Implementations§
Source§impl Clone for TownStatus
impl Clone for TownStatus
Source§fn clone(&self) -> TownStatus
fn clone(&self) -> TownStatus
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 TownStatus
Source§impl Debug for TownStatus
impl Debug for TownStatus
Source§impl Default for TownStatus
impl Default for TownStatus
Source§fn default() -> TownStatus
fn default() -> TownStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for TownStatus
impl PartialEq for TownStatus
impl StructuralPartialEq for TownStatus
Auto Trait Implementations§
impl Freeze for TownStatus
impl RefUnwindSafe for TownStatus
impl Send for TownStatus
impl Sync for TownStatus
impl Unpin for TownStatus
impl UnsafeUnpin for TownStatus
impl UnwindSafe for TownStatus
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