pub struct ListScroll {
pub row: Option<usize>,
pub align: RowAlign,
pub animated: bool,
}Expand description
One programmatic scroll of a recycling list (Toolkit::list_scroll, docs/list.md
“Programmatic scrolling”).
Fields§
§row: Option<usize>The row to bring into view, counted as ListSource::len counts rows and already
clamped to it; None scrolls to the very end of the content.
align: RowAlignWhere the row lands. Ignored for row: None.
animated: boolScroll with the platform’s standard scroll animation, or jump.
Trait Implementations§
Source§impl Clone for ListScroll
impl Clone for ListScroll
impl Copy for ListScroll
Source§impl Debug for ListScroll
impl Debug for ListScroll
impl Eq for ListScroll
Source§impl PartialEq for ListScroll
impl PartialEq for ListScroll
impl StructuralPartialEq for ListScroll
Auto Trait Implementations§
impl Forget for ListScroll
impl Freeze for ListScroll
impl Move for ListScroll
impl RefUnwindSafe for ListScroll
impl Send for ListScroll
impl Sync for ListScroll
impl Unpin for ListScroll
impl UnsafeUnpin for ListScroll
impl UnwindSafe for ListScroll
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