Literature.Pagination.Paginater protocol (literature v0.4.7)
The Literature.Pagination.Paginater
protocol should be implemented for any type that requires pagination.
Summary
Functions
The paginate function will be invoked with the item to paginate along with an option. It is expected to return a Literature.Pagination.Page
.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec paginate(any(), map(), Keyword.t()) :: Literature.Pagination.Page.t()
The paginate function will be invoked with the item to paginate along with an option. It is expected to return a Literature.Pagination.Page
.