pub struct ItemState {
pub dragged: bool,
pub index: usize,
}Expand description
State of the current item.
Fields§
§dragged: boolTrue if the item is currently being dragged.
index: usizeIndex of the item in the list.
Note that when you sort the source list while the drag is still ongoing (default behaviour
of Dnd::show_vec), this index will updated while the item is being dragged.
If you sort once after the item is dropped, the index will be stable during the drag.
Auto Trait Implementations§
impl Freeze for ItemState
impl RefUnwindSafe for ItemState
impl Send for ItemState
impl Sync for ItemState
impl Unpin for ItemState
impl UnwindSafe for ItemState
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