[−][src]Struct todo_lib::tsort::Conf
Sorting rules. First, the list of todos is sorted by the fields defined
in fields
in order of appearance. Then, if rev
is true
the list is
reversed
Fields
fields: Option<String>
comma separated list of field to sort by. Supported field names:
pri
orprioroty
- sort by priority (without priority are the last ones);due
- sor by due date (todos that do not have due date are at the bottom);thr
- sor by threshold date (todos that do not have threshold date are at the bottom);completed
orfinished
- sort by completion date (incomplete ones are at the bottom);created
orcreate
- sort by creation date;subject
,subj
ortext
- sort by todo's subjects;done
- order: incomplete, recurrent, and done todos;project
orproj
- sort by project names, if todos have more than one project they are compared in order of appearance and shorter list of projects goes first;context
orctx
- sort by contexts, if todos have more than one context they are compared in order of appearance and shorter list of contexts goes first;
rev: bool
reverse the list after sorting
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Conf
[src]
impl Send for Conf
[src]
impl Sync for Conf
[src]
impl Unpin for Conf
[src]
impl UnwindSafe for Conf
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,