pub enum ListPatch {
Reload,
RowSizeInvalidated(usize),
ScrollToEnd,
ScrollToRow(usize),
Selected(Vec<usize>),
}Variants§
Reload
The row set changed (count/order/content): the host re-queries its ListSource.
RowSizeInvalidated(usize)
An Automatic-height row’s content size changed; the host re-measures just that row.
ScrollToEnd
Imperatively scroll the native list so its LAST row is fully visible (a chat timeline sticking to the newest message). No-op when the list is empty (docs/list.md).
ScrollToRow(usize)
Imperatively scroll the native list so this row is visible, realizing it if needed (docs/list.md). Clamped to the row count; no-op when the list is empty.
Selected(Vec<usize>)
Programmatic selection sync (row indices; empty = clear) — toolkits apply WITHOUT re-emitting a selection event, like every other programmatic sync.
Trait Implementations§
impl StructuralPartialEq for ListPatch
Auto Trait Implementations§
impl Freeze for ListPatch
impl RefUnwindSafe for ListPatch
impl Send for ListPatch
impl Sync for ListPatch
impl Unpin for ListPatch
impl UnsafeUnpin for ListPatch
impl UnwindSafe for ListPatch
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