Struct egui_dnd::DragUpdate
source · pub struct DragUpdate {
pub from: usize,
pub to: usize,
}
Expand description
An instruction in what order to update the source list. The item at from should be removed from the list and inserted at to. You can use shift_vec to do this for a Vec.
Fields§
§from: usize
Index of the item to move
to: usize
Where to move the item to
Trait Implementations§
source§impl Clone for DragUpdate
impl Clone for DragUpdate
source§fn clone(&self) -> DragUpdate
fn clone(&self) -> DragUpdate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DragUpdate
impl RefUnwindSafe for DragUpdate
impl Send for DragUpdate
impl Sync for DragUpdate
impl Unpin for DragUpdate
impl UnwindSafe for DragUpdate
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