#[non_exhaustive]#[repr(u32)]pub enum DragAction {
None = 0,
Copy = 1,
Move = 2,
Link = 3,
}Expand description
This enum describes the action negotiated between the source of a drag (DragArea)
and its target (DropArea) during a drag-and-drop operation. The source declares
which actions it permits, the target picks one in its can-drop callback, and the
chosen action is reported back to the source via drag-finished so that, for
example, a move source can remove the original data. The same enum is used for
drags that come from another application or window once native drag-and-drop is
in play.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None = 0
No action: the drag is rejected, no drop will be delivered.
Copy = 1
The data is copied to the target; the source retains it.
Move = 2
The data is moved to the target; the source should remove it once the operation completes.
Link = 3
A link to the source data is created at the target; neither side gives up ownership.
Trait Implementations§
Source§impl Clone for DragAction
impl Clone for DragAction
Source§fn clone(&self) -> DragAction
fn clone(&self) -> DragAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DragAction
Source§impl Debug for DragAction
impl Debug for DragAction
Source§impl Default for DragAction
impl Default for DragAction
Source§impl Display for DragAction
impl Display for DragAction
impl Eq for DragAction
Source§impl FromStr for DragAction
impl FromStr for DragAction
Source§impl Hash for DragAction
impl Hash for DragAction
Source§impl PartialEq for DragAction
impl PartialEq for DragAction
Source§fn eq(&self, other: &DragAction) -> bool
fn eq(&self, other: &DragAction) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DragAction
Auto Trait Implementations§
impl Freeze for DragAction
impl RefUnwindSafe for DragAction
impl Send for DragAction
impl Sync for DragAction
impl Unpin for DragAction
impl UnsafeUnpin for DragAction
impl UnwindSafe for DragAction
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
SharedString.