PageRequest
struct · ferroui-dynamic-data · v0.5.0
struct PageRequest
A request of a page of sorted items (PageRequest): the page, from 1, and its size.
Deviation (DEVIATIONS.md, DynamicData): the page and the size are usize, so upstream's
ArgumentException for a negative one cannot arise. Two requests are equal when their parts
are (PageRequest.DefaultComparer).
Members
DEFAULT
const DEFAULT: Self
The first page of 25 items (PageRequest.Default, new PageRequest()).
EMPTY
const EMPTY: Self
The request of nothing (PageRequest.Empty).
new
const fn new(page: usize, size: usize) -> Self
The page page of size items (PageRequest(int page, int size)).
page
const fn page(self: &Self) -> usize
The page, from 1 (Page).
size
const fn size(self: &Self) -> usize
The number of items of a page (Size).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringEquivalent<K>CloneCopyDebugStructuralPartialEqPartialEqEqHashDefaultIPageRequestDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.