pub fn reset_and_set_attempt_as_pb(&mut self) {
        if self.phase != NotRunning {
            self.reset_state(true);
            self.set_run_as_pb();
            self.reset_splits();
        }
    }
/// Resets the current attempt if there is one in progress. The splits are
/// updated such that the current attempt's split times are being stored as
/// the new Personal Best.
Resets the current attempt if there is one in progress. The splits are
updated such that the current attempt's split times are being stored as
the new Personal Best.
Resets the current attempt if there is one in progress . The splits are updated such that the current attempt ' s split times are being stored as the new Personal Best .
pub fn reset_and_set_attempt_as_pb(&mut self) {
        if self.phase != NotRunning {
            self.reset_state(true);
            self.set_run_as_pb();
            self.reset_splits();
        }
    }
pub fn reset_and_set_attempt_as_pb ( & mut self ) { if self . phase != NotRunning { self . reset_state ( true ) ; self . set_run_as_pb ( ) ; self . reset_splits ( ) ; } }
Resets the current attempt if there is one in progress.
Resets the current attempt if there is one in progress .
&mut self
&mut self