1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
/// Period mode.
pub mod period;

/// New mode.
pub mod new;

use super::super::Tick;
pub use period::Period;

/// Tumbling window mode.
pub trait TumblingWindow: Clone {
    /// Is in the same window.
    fn same_window(&self, lhs: &Tick, rhs: &Tick) -> bool;
}