PageContext
struct · ferroui-dynamic-data · v0.5.0
struct PageContext<T>
The page of a change set of SortAndPage, with the comparer and the options
(record PageContext<TObject>).
Members
response
response: super::PageResponse
The page (Response).
comparer
comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>
The comparer of the sort (Comparer).
options
options: super::SortAndPageOptions
The options (Options).
new
fn new(response: PageResponse, comparer: Rc<dyn Fn(&T, &T) -> Ordering>, options: SortAndPageOptions) -> Self
A context of its parts.
empty
fn empty() -> Self
where T: 'static
The context before any page (PageContext<TObject>.Empty).
Deviation (DEVIATIONS.md, DynamicData): its comparer finds every pair equal, as there is no
Comparer<TObject>.Default for every item.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClonePartialEqDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.