WeekdayIter¶
Iterator over the fire instants of a WeekdayRecurrence. Each call
to next() yields either a fresh ZonedDateTime iso^ or a
NextFireError — the error is part of the value type, not a side
channel.
Termination: when the iterator can't progress, the next call emits
the relevant NextFireError exactly once, then has_next() returns
false forever after. A for loop sees the error in the body via
match, then terminates naturally on the following has_next() check.
Implements¶
- Iterator[(ZonedDateTime iso^ | NextFireError val)] ref
Constructors¶
create¶
Parameters¶
- r: WeekdayRecurrence val
- after: ZonedDateTime box
Returns¶
- WeekdayIter ref^
Public Functions¶
has_next¶
Returns¶
- Bool val
next¶
Returns¶
- (ZonedDateTime iso^ | NextFireError val)