pub trait Threshold {
// Required method
fn check_termination(&mut self, rd: usize, network: &Network) -> bool;
}Expand description
Used to end a Simulation.
Required Methods§
Sourcefn check_termination(&mut self, rd: usize, network: &Network) -> bool
fn check_termination(&mut self, rd: usize, network: &Network) -> bool
Check whether to terminate the simulation and update any internal state of the
Threshold..
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".