#[non_exhaustive]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 (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.
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
impl Copy for ListDirection
Source§impl Debug for ListDirection
impl Debug for ListDirection
Source§impl Default for ListDirection
impl Default for ListDirection
impl Eq for ListDirection
Source§impl Hash for ListDirection
impl Hash for ListDirection
Source§impl PartialEq for ListDirection
impl PartialEq 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