pub fn assign_to_stage(&mut self, stage: StageId) {
        match (self.stage, stage) {
            (StageId::Backlog, StageId::Candidate) => {
                // progress will refer to writing progress
                self.progress = 0.;
            }
            (StageId::Candidate, StageId::Progress) => {
                // progress will now refer to development progress
                self.progress = 0.;
            }
            _ => {}
        }
        self.stage = stage;
    }
/// Moves the task to a new stage
/// and updates its progress accordingly.
Moves the task to a new stage
and updates its progress accordingly.
Moves the task to a new stage and updates its progress accordingly .
pub fn assign_to_stage(&mut self, stage: StageId) {
        match (self.stage, stage) {
            (StageId::Backlog, StageId::Candidate) => {
                // progress will refer to writing progress
                self.progress = 0.;
            }
            (StageId::Candidate, StageId::Progress) => {
                // progress will now refer to development progress
                self.progress = 0.;
            }
            _ => {}
        }
        self.stage = stage;
    }
pub fn assign_to_stage ( & mut self , stage : StageId ) { match ( self . stage , stage ) { ( StageId :: Backlog , StageId :: Candidate ) => { // progress will refer to writing progress self . progress = 0. ; } ( StageId :: Candidate , StageId :: Progress ) => { // progress will now refer to development progress self . progress = 0. ; } _ => { } } self . stage = stage ; }
Moves the task to a new stage
and updates its progress accordingly.
Moves the task to a new stage and updates its progress accordingly .
&mut self
stage
StageId
&mut self
stage
StageId