pub struct RowTarget { /* private fields */ }Expand description
One programmatic scroll of a list(), written to its
scroll_to_row binding: the row, where it lands, and whether
the list animates there (docs/list.md “Programmatic scrolling”).
ⓘ
jump.set(Some(RowTarget::new(250))); // reveal, animated
jump.set(Some(RowTarget::new(0).align(RowAlign::Start).instant())); // snap to the topImplementations§
Source§impl RowTarget
impl RowTarget
Sourcepub fn new(row: usize) -> Self
pub fn new(row: usize) -> Self
Scroll to row (an item index, clamped to the list) with the least movement that
shows it, animated.
Trait Implementations§
impl Copy for RowTarget
impl Eq for RowTarget
impl StructuralPartialEq for RowTarget
Auto Trait Implementations§
impl Forget for RowTarget
impl Freeze for RowTarget
impl Move for RowTarget
impl RefUnwindSafe for RowTarget
impl Send for RowTarget
impl Sync for RowTarget
impl Unpin for RowTarget
impl UnsafeUnpin for RowTarget
impl UnwindSafe for RowTarget
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more