pub enum ListDirection {
TopToBottom,
BottomToTop,
}Expand description
Which end of a List’s area its items render from.
ListDirection::TopToBottom is the default: items[state.offset()] draws at the top row
and later items draw downward, the list’s only behavior before this type existed.
ListDirection::BottomToTop draws the same window from the bottom of the area instead:
items[state.offset()] draws at the bottom row and later items draw upward, for a
chat/log-style list that grows toward the top.
Variants§
TopToBottom
items[state.offset()] draws at the top of the area; later items draw downward.
BottomToTop
items[state.offset()] draws at the bottom of the area; later items draw upward.
Trait Implementations§
Source§impl Clone for ListDirection
impl Clone for ListDirection
Source§fn clone(&self) -> ListDirection
fn clone(&self) -> ListDirection
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 moreSource§impl Debug for ListDirection
impl Debug for ListDirection
Source§impl Default for ListDirection
impl Default for ListDirection
Source§fn default() -> ListDirection
fn default() -> ListDirection
Returns the “default value” for a type. Read more
Source§impl Hash for ListDirection
impl Hash for ListDirection
Source§impl PartialEq for ListDirection
impl PartialEq for ListDirection
Source§fn eq(&self, other: &ListDirection) -> bool
fn eq(&self, other: &ListDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ListDirection
impl Eq for ListDirection
impl StructuralPartialEq for ListDirection
Auto Trait Implementations§
impl Freeze for ListDirection
impl RefUnwindSafe for ListDirection
impl Send for ListDirection
impl Sync for ListDirection
impl Unpin for ListDirection
impl UnsafeUnpin for ListDirection
impl UnwindSafe for ListDirection
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,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
Wraps
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
Wraps
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).