pub struct SortableItem {
pub label: String,
pub selected: bool,
pub dragging: bool,
pub original_index: usize,
}Expand description
Item in a sortable list
Fields§
§label: StringItem label
selected: boolIs item selected
dragging: boolIs item being dragged
original_index: usizeOriginal index (before any reordering)
Implementations§
Trait Implementations§
Source§impl Clone for SortableItem
impl Clone for SortableItem
Source§fn clone(&self) -> SortableItem
fn clone(&self) -> SortableItem
Returns a duplicate 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 SortableItem
impl RefUnwindSafe for SortableItem
impl Send for SortableItem
impl Sync for SortableItem
impl Unpin for SortableItem
impl UnsafeUnpin for SortableItem
impl UnwindSafe for SortableItem
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