pub struct PageContext<T> {
pub response: PageResponse,
pub comparer: Rc<dyn Fn(&T, &T) -> Ordering>,
pub options: SortAndPageOptions,
}Expand description
The page of a change set of SortAndPage, with the comparer and the options
(record PageContext<TObject>).
Fields§
§response: PageResponseThe page (Response).
comparer: Rc<dyn Fn(&T, &T) -> Ordering>The comparer of the sort (Comparer).
options: SortAndPageOptionsThe options (Options).
Implementations§
Source§impl<T> PageContext<T>
impl<T> PageContext<T>
Sourcepub fn new(
response: PageResponse,
comparer: Rc<dyn Fn(&T, &T) -> Ordering>,
options: SortAndPageOptions,
) -> Self
pub fn new( response: PageResponse, comparer: Rc<dyn Fn(&T, &T) -> Ordering>, options: SortAndPageOptions, ) -> Self
A context of its parts.
Trait Implementations§
Source§impl<T> Clone for PageContext<T>
impl<T> Clone for PageContext<T>
Source§impl<T> Debug for PageContext<T>
impl<T> Debug for PageContext<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PageContext<T>
impl<T> !Send for PageContext<T>
impl<T> !Sync for PageContext<T>
impl<T> !UnwindSafe for PageContext<T>
impl<T> Freeze for PageContext<T>
impl<T> Unpin for PageContext<T>
impl<T> UnsafeUnpin for PageContext<T>
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