pub enum PaginatorStyle {
Dots,
Arabic,
}Expand description
Visual style for Context::paginator.
Dots renders one ●/○ glyph per page and is the default; it falls back
to Arabic automatically once there are more than 12 pages so the indicator
never overflows. Arabic renders a compact {page}/{total} counter.
Variants§
Dots
One ●/○ glyph per page. Auto-falls back to Self::Arabic past 12 pages.
Arabic
Compact {page}/{total} counter.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaginatorStyle
Source§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
impl Eq for PaginatorStyle
Source§impl PartialEq for PaginatorStyle
impl PartialEq for PaginatorStyle
Source§fn eq(&self, other: &PaginatorStyle) -> bool
fn eq(&self, other: &PaginatorStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.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§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.