pub fn add_todo(&mut self, title: &str) {
        let id = self.todos_next_id;
        self.todos_next_id += 1;
        let new = Todo::new(id, title);
        self.todos.insert(id, new);
    }
/// Add a new todo item to this collection.
Add a new todo item to this collection.
Add a new todo item to this collection .
pub fn add_todo(&mut self, title: &str) {
        let id = self.todos_next_id;
        self.todos_next_id += 1;
        let new = Todo::new(id, title);
        self.todos.insert(id, new);
    }
pub fn add_todo ( & mut self , title : & str ) { let id = self . todos_next_id ; self . todos_next_id += 1 ; let new = Todo :: new ( id , title ) ; self . todos . insert ( id , new ) ; }
Add a new todo item to this collection.
Add a new todo item to this collection .
&mut self
title
&str
&mut self
title
&str