pub enum DropEffect {
None,
Copy,
Move,
Link,
}Variants§
Implementations§
Source§impl DropEffect
impl DropEffect
pub const fn is_none(self) -> bool
pub const fn is_some(self) -> bool
Sourcepub const fn for_modifiers(modifiers: Modifiers) -> Option<Self>
pub const fn for_modifiers(modifiers: Modifiers) -> Option<Self>
The effect the held modifier keys ask for, by the platform’s
convention: on macOS Option copies, Command moves and both link;
elsewhere Control copies, Shift moves and both link. None when no
modifier asks for an effect.
Trait Implementations§
Source§impl Clone for DropEffect
impl Clone for DropEffect
impl Copy for DropEffect
Source§impl Debug for DropEffect
impl Debug for DropEffect
Source§impl Default for DropEffect
impl Default for DropEffect
impl Eq for DropEffect
Source§impl From<DropEffect> for DropEffects
impl From<DropEffect> for DropEffects
Source§fn from(effect: DropEffect) -> Self
fn from(effect: DropEffect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DropEffect
impl PartialEq for DropEffect
impl StructuralPartialEq for DropEffect
Auto Trait Implementations§
impl Forget for DropEffect
impl Freeze for DropEffect
impl Move 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