Trait TimeTruncation

Source
pub trait TimeTruncation: TimeBounds {
    // Required methods
    fn truncate_before(&mut self, lower: Self::TimePoint) -> bool;
    fn truncate_after(&mut self, upper: Self::TimePoint) -> bool;
}

Required Methods§

Source

fn truncate_before(&mut self, lower: Self::TimePoint) -> bool

Returns true if something changed

Source

fn truncate_after(&mut self, upper: Self::TimePoint) -> bool

Returns true if something changed

Implementors§