pub struct DragDropState {
pub dragging: Option<NodeId>,
pub hover_target: Option<NodeId>,
pub hover_position: DropPosition,
pub drag_start_y: f32,
pub current_y: f32,
}Expand description
Tracks state for simulated drag-and-drop reordering.
Fields§
§dragging: Option<NodeId>§hover_target: Option<NodeId>§hover_position: DropPosition§drag_start_y: f32§current_y: f32Implementations§
Source§impl DragDropState
impl DragDropState
Trait Implementations§
Source§impl Clone for DragDropState
impl Clone for DragDropState
Source§fn clone(&self) -> DragDropState
fn clone(&self) -> DragDropState
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 moreSource§impl Debug for DragDropState
impl Debug for DragDropState
Source§impl Default for DragDropState
impl Default for DragDropState
Source§fn default() -> DragDropState
fn default() -> DragDropState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DragDropState
impl RefUnwindSafe for DragDropState
impl Send for DragDropState
impl Sync for DragDropState
impl Unpin for DragDropState
impl UnsafeUnpin for DragDropState
impl UnwindSafe for DragDropState
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