pub enum PaginatorStyle {
PageOfTotal,
RangeOfTotal,
Dots,
Compact,
}Expand description
Display style for the paginator.
Controls how page position information is rendered.
§Example
use envision::component::PaginatorStyle;
let style = PaginatorStyle::default();
assert_eq!(style, PaginatorStyle::PageOfTotal);
let style = PaginatorStyle::Dots;
assert_eq!(style, PaginatorStyle::Dots);Variants§
PageOfTotal
"Page 3 of 12" format.
RangeOfTotal
"Showing 51-100 of 2,847" format with item ranges.
Dots
"○ ○ ● ○ ○" dot indicators with current page highlighted.
Compact
"◀ 3 / 12 ▶" compact format with navigation arrows.
Trait Implementations§
Source§impl Clone for PaginatorStyle
impl Clone for PaginatorStyle
Source§fn clone(&self) -> PaginatorStyle
fn clone(&self) -> PaginatorStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaginatorStyle
impl Debug for PaginatorStyle
Source§impl Default for PaginatorStyle
impl Default for PaginatorStyle
Source§fn default() -> PaginatorStyle
fn default() -> PaginatorStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaginatorStyle
impl<'de> Deserialize<'de> for PaginatorStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaginatorStyle
impl PartialEq for PaginatorStyle
Source§impl Serialize for PaginatorStyle
impl Serialize for PaginatorStyle
impl Eq for PaginatorStyle
impl StructuralPartialEq for PaginatorStyle
Auto Trait Implementations§
impl Freeze for PaginatorStyle
impl RefUnwindSafe for PaginatorStyle
impl Send for PaginatorStyle
impl Sync for PaginatorStyle
impl Unpin for PaginatorStyle
impl UnsafeUnpin for PaginatorStyle
impl UnwindSafe for PaginatorStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more