Trait PaginationExt

Source
pub trait PaginationExt {
    type Data;

    // Required method
    fn into_paginator(self) -> ListPaginator<Self::Data>;
}
Expand description

An extension trait to allow converting List<T> and SearchList<T> into a type that can be paginated. Not meant to be implemented by any other types.

Required Associated Types§

Source

type Data

The underlying pagination type, e.g. List<T> or SearchList<T>.

Required Methods§

Source

fn into_paginator(self) -> ListPaginator<Self::Data>

Use the current page state to construct an adaptor capable of paginating from where the current data left off.

Implementations on Foreign Types§

Source§

impl<T> PaginationExt for List<T>
where T: Sync + Send + 'static, List<T>: PaginableList,

Source§

impl<T> PaginationExt for SearchList<T>
where T: Sync + Send + 'static, SearchList<T>: PaginableList,

Implementors§