[][src]Struct paginator::Paginator

pub struct Paginator { /* fields omitted */ }

Implementations

impl Paginator[src]

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

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

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

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

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

pub const fn has_prev(&self) -> YesNoDepends[src]

pub const fn has_next(&self) -> YesNoDepends[src]

impl Paginator[src]

pub fn paginate(&self) -> Vec<PageItem>[src]

Create PageItems.

impl Paginator[src]

pub fn builder(total_pages: usize) -> PaginatorBuilder[src]

An alias of PaginatorBuilder::new.

impl Paginator[src]

pub fn iter(&self) -> PaginatorIter

Notable traits for PaginatorIter

impl Iterator for PaginatorIter type Item = Paginator;
[src]

Trait Implementations

impl Clone for Paginator[src]

impl Debug for Paginator[src]

impl Eq for Paginator[src]

impl IntoIterator for Paginator[src]

type IntoIter = PaginatorIter

Which kind of iterator are we turning this into?

type Item = Paginator

The type of the elements being iterated over.

impl PartialEq<Paginator> for Paginator[src]

impl StructuralEq for Paginator[src]

impl StructuralPartialEq for Paginator[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.