pub struct CitizenValue {
pub age: f32,
pub adult_age: f32,
pub school: bool,
pub health: f32,
pub happiness: f32,
pub status: u32,
}Expand description
What the status bar reads of one citizen.
Fields§
§age: f32The age.
adult_age: f32The age at which a citizen is an adult.
school: boolWhether it attends school.
health: f32The health.
happiness: f32The happiness.
status: u32StatusIconComponent, not Citizen.
Trait Implementations§
Source§impl Clone for CitizenValue
impl Clone for CitizenValue
Source§fn clone(&self) -> CitizenValue
fn clone(&self) -> CitizenValue
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 CitizenValue
Source§impl Debug for CitizenValue
impl Debug for CitizenValue
Source§impl Default for CitizenValue
impl Default for CitizenValue
Source§fn default() -> CitizenValue
fn default() -> CitizenValue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CitizenValue
impl RefUnwindSafe for CitizenValue
impl Send for CitizenValue
impl Sync for CitizenValue
impl Unpin for CitizenValue
impl UnsafeUnpin for CitizenValue
impl UnwindSafe for CitizenValue
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