Skip to main content

display_tail

Function display_tail 

Source
pub fn display_tail(msgs: &[SharedMessage], max_items: usize) -> DisplayTail
Expand description

The last max_items display items (0 = unbounded). Walks from the back and stops once the cap is met; the head is only counted (no allocation), so a 20 MB history costs O(tail) allocations + one O(n) scan.