fn contains_task_with_name(&mut self, name: String) -> bool {
        for command in &self.commands {
            if command.name == name {
                return true;
            }
        }

        false
    }
// For checking if the vector of tasks contains a task
For checking if the vector of tasks contains a task
For checking if the vector of tasks contains a task
fn contains_task_with_name(&mut self, name: String) -> bool {
        for command in &self.commands {
            if command.name == name {
                return true;
            }
        }
        false
    }
fn contains_task_with_name ( & mut self , name : String ) -> bool { for command in & self . commands { if command . name == name { return true ; } } false }
For checking if the vector of tasks contains a task
For checking if the vector of tasks contains a task
&mut self
name
String
&mut self
name
String