pub struct Professions {
pub list: Vec<Profession>,
pub laborer: usize,
pub builder: usize,
}Expand description
The profession manager (Profession.rsc:resource): the list of professions
(Profession.rsc:professionList), the laborer and builder entries, and the child and student
entries.
Original: FUN_1400ae300.
Fields§
§list: Vec<Profession>Every profession.
laborer: usizeThe laborer’s index in list.
builder: usizeThe builder’s index in list.
Implementations§
Source§impl Professions
impl Professions
Sourcepub fn works_anywhere(&self, p: usize) -> bool
pub fn works_anywhere(&self, p: usize) -> bool
Whether a profession works anywhere (its description says so), not at one workplace.
Trait Implementations§
Source§impl Clone for Professions
impl Clone for Professions
Source§fn clone(&self) -> Professions
fn clone(&self) -> Professions
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 Professions
impl Debug for Professions
Source§impl Default for Professions
impl Default for Professions
Source§fn default() -> Professions
fn default() -> Professions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Professions
impl RefUnwindSafe for Professions
impl Send for Professions
impl Sync for Professions
impl Unpin for Professions
impl UnsafeUnpin for Professions
impl UnwindSafe for Professions
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