#[repr(C)]pub struct PaginationState {
pub current_page: usize,
pub total_pages: usize,
}Expand description
State of a Pagination: the current (1-based) page and the total page count.
Fields§
§current_page: usizeThe 1-based index of the current page.
total_pages: usizeThe total number of pages.
Trait Implementations§
Source§impl Clone for PaginationState
impl Clone for PaginationState
Source§fn clone(&self) -> PaginationState
fn clone(&self) -> PaginationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaginationState
Source§impl Debug for PaginationState
impl Debug for PaginationState
Source§impl Default for PaginationState
impl Default for PaginationState
Source§fn default() -> PaginationState
fn default() -> PaginationState
Returns the “default value” for a type. Read more
impl Eq for PaginationState
Source§impl PartialEq for PaginationState
impl PartialEq for PaginationState
impl StructuralPartialEq for PaginationState
Auto Trait Implementations§
impl Freeze for PaginationState
impl RefUnwindSafe for PaginationState
impl Send for PaginationState
impl Sync for PaginationState
impl Unpin for PaginationState
impl UnsafeUnpin for PaginationState
impl UnwindSafe for PaginationState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more