Trait UpdateInteraction

pub trait UpdateInteraction {
    // Required methods
    fn get_current_neighbors(&self) -> usize;
    fn set_current_neighbors(&mut self, neighbors: usize);
    fn incr_current_neighbors(&mut self, neighbors: usize);
}
Available on crate feature chili only.
Expand description

Interface to store intermediate information about interactions.

Required Methods§

fn get_current_neighbors(&self) -> usize

Obtain current number of neighbors

fn set_current_neighbors(&mut self, neighbors: usize)

Set the number of neighbors

fn incr_current_neighbors(&mut self, neighbors: usize)

Increment the number of current neighbors by the provided value

Implementors§