Skip to main content

write_pagination_footer

Function write_pagination_footer 

Source
pub fn write_pagination_footer(
    w: &mut dyn Write,
    offset: i64,
    page_len: usize,
    total: i64,
) -> Result<()>
Expand description

Writes a "showing X–Y of Z" footer below a list-style table. Handles the empty-page case (page_len == 0) without underflowing to "1-0 of N".