#[non_exhaustive]#[repr(u8)]pub enum DndAction {
Move = 0,
Copy = 1,
Link = 2,
Ask = 3,
Private = 4,
}Expand description
The set of available actions for a drag operation.
This is not a bitset, as on some platforms (e.g. Wayland, macOS) the source and/or destination are expected to provide some kind of order of preference.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
impl Copy for DndAction
impl StructuralPartialEq for DndAction
Auto Trait Implementations§
impl Freeze for DndAction
impl RefUnwindSafe for DndAction
impl Send for DndAction
impl Sync for DndAction
impl Unpin for DndAction
impl UnsafeUnpin for DndAction
impl UnwindSafe for DndAction
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