Skip to main content

keep_bounded

Function keep_bounded 

Source
pub fn keep_bounded<T>(v: &mut Vec<T>, now: i64, ms: impl Fn(&T) -> i64)
Expand description

Drops entries past the TTL (with slack) and keeps the KEEP newest, in their order.