Function todo_lib::todo::remove[][src]

pub fn remove(tasks: &mut TaskVec, ids: Option<&IDVec>) -> ChangedVec
Expand description

Removes todos from the list

  • tasks - the task list
  • ids - the list of todo IDs which should be removed. If it is None the task list is cleared.

Returns a list of boolean values: a value per each ID in ids or tasks. The length of the result list equals either length of ids(if ids is Some) or length of tasks(if ids is None). Value true in this array means that corresponding item from ids or tasks was modified. Note: all items in ChangedVec are always true.