Function window
pub fn window(
total: usize,
offset: i64,
limit: u32,
) -> Result<Window, PageError>Expand description
The window of a list of total items for offset (negative: from the end) and limit.
ยงErrors
PageError::PastEnd when the list has items and the offset is after the last one.