fn process_one_iteration(&mut self) -> Result<State<A>, <Self as Simulation<A>>::Error> {
        let loop_started_at = Local::now();

        self.iteration += 1;
        let result = self.algorithm.next(self.iteration, &mut self.rng);
        self.processing_time += self.algorithm.processing_time();

        let loop_duration = Local::now().signed_duration_since(loop_started_at);
        match result {
            Ok(result) => Ok(State {
                started_at: self.started_at,
                iteration: self.iteration,
                duration: loop_duration,
                processing_time: self.algorithm.processing_time(),
                result,
            }),
            Err(error) => Err(SimError::AlgorithmError(error)),
        }
    }
/// Processes one iteration of the algorithm used in this simulation.
Processes one iteration of the algorithm used in this simulation.
Processes one iteration of the algorithm used in this simulation .
fn process_one_iteration(&mut self) -> Result<State<A>, <Self as Simulation<A>>::Error> {
        let loop_started_at = Local::now();
        self.iteration += 1;
        let result = self.algorithm.next(self.iteration, &mut self.rng);
        self.processing_time += self.algorithm.processing_time();
        let loop_duration = Local::now().signed_duration_since(loop_started_at);
        match result {
            Ok(result) => Ok(State {
                started_at: self.started_at,
                iteration: self.iteration,
                duration: loop_duration,
                processing_time: self.algorithm.processing_time(),
                result,
            }),
            Err(error) => Err(SimError::AlgorithmError(error)),
        }
    }
fn process_one_iteration ( & mut self ) -> Result < State < A > , < Self as Simulation < A > > :: Error > { let loop_started_at = Local :: now ( ) ; self . iteration += 1 ; let result = self . algorithm . next ( self . iteration , & mut self . rng ) ; self . processing_time += self . algorithm . processing_time ( ) ; let loop_duration = Local :: now ( ) . signed_duration_since ( loop_started_at ) ; match result { Ok ( result ) => Ok ( State { started_at : self . started_at , iteration : self . iteration , duration : loop_duration , processing_time : self . algorithm . processing_time ( ) , result , } ) , Err ( error ) => Err ( SimError :: AlgorithmError ( error ) ) , } }
Processes one iteration of the algorithm used in this simulation.
Processes one iteration of the algorithm used in this simulation .
&mut self
&mut self