pub enum DragPhase {
Dragging,
Over,
Dropped,
Cancelled,
}Expand description
会话阶段。
Variants§
Dragging
已开始,尚未落到目标。
Over
已在某个 DropTarget 上方(hover 高亮)。
Dropped
已成功 drop(终态,下一次 begin 覆盖)。
Cancelled
被取消 / owner 失效 / 类型不匹配(终态)。
Trait Implementations§
impl Copy for DragPhase
impl Eq for DragPhase
impl StructuralPartialEq for DragPhase
Auto Trait Implementations§
impl Forget for DragPhase
impl Freeze for DragPhase
impl Move for DragPhase
impl RefUnwindSafe for DragPhase
impl Send for DragPhase
impl Sync for DragPhase
impl Unpin for DragPhase
impl UnsafeUnpin for DragPhase
impl UnwindSafe for DragPhase
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