Skip to main content

tally

Function tally 

Source
pub fn tally(
    shown: usize,
    total: Option<u64>,
    next_page: Option<u32>,
    ctx: &Context,
) -> String
Expand description

The shown N of M line every listing ends with, and the next page when one exists.

Never optional. A caller that receives 25 rows and cannot tell a complete answer from a truncated one will eventually conclude there is nothing to find, which is a worse failure than any number of wasted tokens.