pub fn add_progress(&mut self, progress: f64) -> bool {
        self.progress = (self.progress + progress).min(1.);

        if self.progress >= 1. {
            if self.stage == StageId::Candidate {
                self.specified = true;
            }
            true
        } else {
            false
        }
    }
/// Add some progress.
/// Return whether the task has reached 100% progress.
Add some progress.
Return whether the task has reached 100% progress.
Add some progress . Return whether the task has reached 100% progress .
pub fn add_progress(&mut self, progress: f64) -> bool {
        self.progress = (self.progress + progress).min(1.);
        if self.progress >= 1. {
            if self.stage == StageId::Candidate {
                self.specified = true;
            }
            true
        } else {
            false
        }
    }
pub fn add_progress ( & mut self , progress : f64 ) -> bool { self . progress = ( self . progress + progress ) . min ( 1. ) ; if self . progress >= 1. { if self . stage == StageId :: Candidate { self . specified = true ; } true } else { false } }
Add some progress.
Add some progress .
&mut self
progress
f64
&mut self
progress
f64