#[repr(C)]pub enum DropEffect {
None = 0,
Copy = 1,
Link = 2,
Move = 3,
}Expand description
Drop effect — the operation that will happen if the data is dropped
on the current target (HTML5 DataTransfer.dropEffect).
This is a strict subset of DragEffect: a drop target selects one of
these four outcomes, which must also be allowed by the source’s
effect_allowed.
Variants§
None = 0
No drop allowed / the drop is rejected. Default.
Copy = 1
Drop will copy the data (source retains its copy).
Link = 2
Drop will create a link/shortcut to the data.
Move = 3
Drop will move the data (source should remove its copy).
Trait Implementations§
Source§impl Clone for DropEffect
impl Clone for DropEffect
Source§fn clone(&self) -> DropEffect
fn clone(&self) -> DropEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DropEffect
impl Debug for DropEffect
Source§impl Default for DropEffect
impl Default for DropEffect
Source§fn default() -> DropEffect
fn default() -> DropEffect
Returns the “default value” for a type. Read more
Source§impl PartialEq for DropEffect
impl PartialEq for DropEffect
Source§fn eq(&self, other: &DropEffect) -> bool
fn eq(&self, other: &DropEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DropEffect
impl Eq for DropEffect
impl StructuralPartialEq for DropEffect
Auto Trait Implementations§
impl Freeze for DropEffect
impl RefUnwindSafe for DropEffect
impl Send for DropEffect
impl Sync for DropEffect
impl Unpin for DropEffect
impl UnsafeUnpin for DropEffect
impl UnwindSafe for DropEffect
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