Skip to main content

trim

Function trim 

Source
pub fn trim(history: &mut Vec<Message>, max: usize)
Expand description

Drop the oldest messages so history.len() <= max. No-op if already short.