[][src]Struct elephantry::Pager

pub struct Pager<E: Entity> { /* fields omitted */ }

Implementations

impl<E: Entity> Pager<E>[src]

pub fn result_count(&self) -> usize[src]

Get the number of results in this page.

pub fn result_min(&self) -> usize[src]

Get the index of the first element of this page.

pub fn result_max(&self) -> usize[src]

Get the index of the last element of this page.

pub fn last_page(&self) -> usize[src]

Get the last page index.

pub fn page(&self) -> usize[src]

Get the current page index.

pub fn has_next_page(&self) -> bool[src]

True if a next page exists.

pub fn has_previous_page(&self) -> bool[src]

True if a previous page exists.

pub fn count(&self) -> usize[src]

Get the total number of results in all pages.

pub fn max_per_page(&self) -> usize[src]

Get maximum result per page.

Trait Implementations

impl<E: Debug + Entity> Debug for Pager<E>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for Pager<E>

impl<E> Send for Pager<E> where
    E: Send

impl<E> !Sync for Pager<E>

impl<E> Unpin for Pager<E> where
    E: Unpin

impl<E> UnwindSafe for Pager<E> where
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.