Skip to main content

Threshold

Trait Threshold 

Source
pub trait Threshold {
    // Required method
    fn check_termination(&mut self, rd: usize, network: &Network) -> bool;
}
Expand description

Used to end a Simulation.

Required Methods§

Source

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".

Implementors§