pub enum Scroll {
KeepInView,
Centred,
}Expand description
How the window follows the focus.
Variants§
KeepInView
The window moves only when the focus would leave it, and then only as far as it must: by one row when the focus steps past an edge.
Centred
The focus sits in the middle of the window, except near the ends of the list, where the window stops at the first or the last row.
Trait Implementations§
impl Copy for Scroll
impl Eq for Scroll
impl StructuralPartialEq for Scroll
Auto Trait Implementations§
impl Freeze for Scroll
impl RefUnwindSafe for Scroll
impl Send for Scroll
impl Sync for Scroll
impl Unpin for Scroll
impl UnsafeUnpin for Scroll
impl UnwindSafe for Scroll
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