Skip to main content

Module repeat

Module repeat 

Source
Available on crate feature calendar only.
Expand description

Repeating entries: how often, and expanding them into occurrences.

The rules live in rules, which has no GUI dependency. This module applies them to an Entry.

Re-exports§

pub use super::rules::Ends;
pub use super::rules::Frequency;
pub use super::rules::Instance;
pub use super::rules::MAX_OCCURRENCES;
pub use super::rules::Repeat;

Functions§

nth
Occurrence index of entry, or None once the entry has stopped repeating or the date is out of range.
occurrences
The occurrences of entry that overlap the time from from up to to, earliest first. At most MAX_OCCURRENCES are returned.