pub trait WindowSourceExt: WindowSource {
// Provided method
fn next_windows_from(&self, from: DateTime<Utc>) -> NextWindows<'_, Self> ⓘ
where Self: Sized { ... }
}Expand description
Extension methods for WindowSource.
This trait provides convenience iteration helpers for any window source.
Provided Methods§
Sourcefn next_windows_from(&self, from: DateTime<Utc>) -> NextWindows<'_, Self> ⓘwhere
Self: Sized,
fn next_windows_from(&self, from: DateTime<Utc>) -> NextWindows<'_, Self> ⓘwhere
Self: Sized,
Returns an iterator over successive windows after from.
Each yielded window is produced by repeated calls to
WindowSource::next_window. The iterator preserves overlap-aware
semantics by advancing from one yielded window’s start to the next.
For infinite recurring sources, this iterator may itself be infinite;
callers can combine it with adapters like Iterator::take.