pub struct Pagino {
pub show_first: bool,
pub show_previous: bool,
pub show_next: bool,
pub show_last: bool,
pub page: i32,
pub count: i32,
pub sibling_count: i32,
pub boundary_count: i32,
}
Fields§
§show_first: bool
§show_previous: bool
§show_next: bool
§show_last: bool
§page: i32
§count: i32
§sibling_count: i32
§boundary_count: i32
Implementations§
Source§impl Pagino
impl Pagino
pub fn new( show_first: bool, show_previous: bool, show_next: bool, show_last: bool, page: i32, count: i32, sibling_count: i32, boundary_count: i32, ) -> Pagino
pub fn set_count(&mut self, count: i32)
pub fn set_page(&mut self, page: i32)
pub fn first(&mut self)
pub fn last(&mut self)
pub fn next(&mut self)
pub fn previous(&mut self)
pub fn get_pages(&self) -> Vec<i32>
Auto Trait Implementations§
impl Freeze for Pagino
impl RefUnwindSafe for Pagino
impl Send for Pagino
impl Sync for Pagino
impl Unpin for Pagino
impl UnwindSafe for Pagino
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