pub trait Search {
// Required methods
fn cell(&self, c: usize) -> i32;
fn anywhere(&self, profession: usize) -> bool;
fn priority(&self, workplace: usize) -> i32;
fn reach(&mut self, cell: i32, workplace: usize) -> bool;
fn rng(&mut self) -> &mut Random;
}Expand description
What the workplace searches read.
Original: FUN_140115490, FUN_140115940, FUN_140115eb0.
Required Methods§
Sourcefn anywhere(&self, profession: usize) -> bool
fn anywhere(&self, profession: usize) -> bool
Profession +0x4c (Professions::works_anywhere).
Sourcefn priority(&self, workplace: usize) -> i32
fn priority(&self, workplace: usize) -> i32
The workplace’s work priority (Jobs entry +0x24, lower first).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".