[−][src]Struct elephantry::Pager
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
Auto Trait Implementations
impl<E> !RefUnwindSafe for Pager<E>
impl<E> Send for Pager<E> where
E: Send,
E: Send,
impl<E> !Sync for Pager<E>
impl<E> Unpin for Pager<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Pager<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,