Skip to main content

paginate

Function paginate 

Source
pub fn paginate<T: Clone>(
    items: &[T],
    offset: usize,
    limit: usize,
    summary: Summary,
) -> Result<Page<T>, InterfaceError>
Expand description

Builds a deterministic bounded page from an already ordered item slice.

ยงErrors

Returns InterfaceError::InvalidBound when limit is zero or exceeds the export node hard bound.