pub trait Callbacks {
// Required methods
fn call(&mut self, jobs: &mut Jobs, site: usize, f: Callback) -> bool;
fn machine(&mut self, site: usize) -> &mut Machine;
}Expand description
What a callback needs to run, borrowed from the town (see crate::town::Sim).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".