#[non_exhaustive]pub enum PageKind {
Numbered,
Growing,
}Expand description
Whether a paged set arrives in pages of a fixed size or as one window that grows.
The fact Paging carries so no renderer infers it from the numbers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Numbered
Parts of a fixed size, so “Page 3 of 8” names something.
Growing
Load-more: the window starts at the beginning and grows, and “page 2” would name nothing.
Trait Implementations§
impl Copy for PageKind
impl Eq for PageKind
impl StructuralPartialEq for PageKind
Auto Trait Implementations§
impl Forget for PageKind
impl Freeze for PageKind
impl Move for PageKind
impl RefUnwindSafe for PageKind
impl Send for PageKind
impl Sync for PageKind
impl Unpin for PageKind
impl UnsafeUnpin for PageKind
impl UnwindSafe for PageKind
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