pub enum EndCondition {
Time(f64),
NoEvents,
NSteps(usize),
}Expand description
Specify which condition must be met for the simulation to stop.
Variants§
Time(f64)
Run the simulation until a certain point in time is reached.
NoEvents
Run the simulation until there are no more events scheduled.
NSteps(usize)
Execute exactly N steps of the simulation.
Auto Trait Implementations§
impl Freeze for EndCondition
impl RefUnwindSafe for EndCondition
impl Send for EndCondition
impl Sync for EndCondition
impl Unpin for EndCondition
impl UnwindSafe for EndCondition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more