[][src]Function todo_lib::tfilter::filter

pub fn filter(tasks: &TaskSlice, c: &Conf) -> IDVec

Entry function to filter the list of todo records

The function does not modify the todo list. It looks through the todo records and fill the vector with ID of todos which meet all the criteria.

  • tasks - list of todos to filter
  • c - filtering rules

Returns: the list of todo IDs which meet filtering criteria