Trait Coarsen

Source
pub trait Coarsen {
    // Required method
    fn coarsen(&self, window_size: &Self) -> Self;
}
Expand description

Extension trait for timestamp types that can be rounded up to interval bounds, thus coarsening the granularity of timestamps and delaying results.

Required Methods§

Source

fn coarsen(&self, window_size: &Self) -> Self

Returns a new timestamp delayed up to the next multiple of the specified window size.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Coarsen for u64

Source§

fn coarsen(&self, window_size: &Self) -> Self

Source§

impl Coarsen for Duration

Source§

fn coarsen(&self, window_size: &Self) -> Self

Implementors§