#[non_exhaustive]pub struct Page { /* private fields */ }
Implementations
sourceimpl Page
impl Page
pub fn is_first_page(&self) -> bool
pub fn is_last_page(&self) -> bool
pub fn next_page(&self) -> Option<Self>
pub fn prev_page(&self) -> Option<Self>
pub fn page_value(&self) -> NonZeroUsize
pub fn limit_value(&self) -> NonZeroUsize
pub fn offset_value(&self) -> usize
pub fn offset_range(&self) -> Range<usize>
Methods from Deref<Target = Paginator>
Trait Implementations
impl Copy for Page
impl Eq for Page
impl StructuralEq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more