krabmaga 0.6.0

A modern developing art for reliable and efficient Agent-based Model (ABM) simulation with the Rust language.
Documentation
1
2
3
4
5
6
7
8
9
/// Trait for implement a generic Field in the engine
///
/// update and lazy update allow to update the field whenever is requested
pub trait Field {
    /// Swap the state of the field and updates the writing state.
    fn update(&mut self) {}
    /// Swap the state of the field and cleans the writing state.
    fn lazy_update(&mut self) {}
}