pub enum ValueSpan {
    None,
    Equal,
    Lower,
    Higher,
    Any,
    Range,
}
Expand description

A type of comparison for the property.

Every property supports only a limited subset:

  • project and context: do not use ValueSpan because they always search for a given text;
  • priority: None, Any, Equal, Lower, and Higher;
  • recurrence: None and Any;
  • due: None, Any, Lower, and Range;

Variants

None

Do not check the property value

Equal

Property value must equal a given one (projects and contexts provide more ways to compare, including simple pattern matching)

Lower

Property value must be equal to or less than the given one

Higher

Property value must be equal to or greater than the given one

Any

Property must be set to any value except None or empty string. Useful, e.g, to select all todos with any due date or priority

Range

Property value must be within range (range is inclusive)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.