pub enum ItemRange {
    None,
    One(usize),
    Range(usizeusize),
    List(Vec<usize>),
}
Expand description

Span of todo record IDs to process. ID is an order number of the todo record in the file starting from 0

Variants

None

One(usize)

one record

Range(usizeusize)

inclusive range of records (from, to). Range(1, 4)` means all records from 1 through 4: 1, 2, 3, and 4. Values can exceed the number of todos. All IDs greater than the number of todos are skipped

List(Vec<usize>)

List of IDs

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

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.