pub struct DropEffects(/* private fields */);Expand description
A set of drop effects, such as every effect a drag source allows.
Implementations§
Source§impl DropEffects
impl DropEffects
pub const NONE: Self
pub const COPY: Self
pub const MOVE: Self
pub const LINK: Self
pub const ALL: Self
pub const fn contains(self, effect: DropEffect) -> bool
pub const fn is_empty(self) -> bool
Sourcepub const fn with(self, effect: DropEffect) -> Self
pub const fn with(self, effect: DropEffect) -> Self
This set with effect added.
Sourcepub const fn default_effect(self) -> DropEffect
pub const fn default_effect(self) -> DropEffect
The effect a drop takes when no modifier key asks for another: move, then copy, then link, whichever the set holds first.
Trait Implementations§
Source§impl BitOr for DropEffects
impl BitOr for DropEffects
Source§impl Clone for DropEffects
impl Clone for DropEffects
impl Copy for DropEffects
Source§impl Debug for DropEffects
impl Debug for DropEffects
Source§impl Default for DropEffects
impl Default for DropEffects
impl Eq for DropEffects
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 Hash for DropEffects
impl Hash for DropEffects
Source§impl PartialEq for DropEffects
impl PartialEq for DropEffects
impl StructuralPartialEq for DropEffects
Auto Trait Implementations§
impl Forget for DropEffects
impl Freeze for DropEffects
impl Move for DropEffects
impl RefUnwindSafe for DropEffects
impl Send for DropEffects
impl Sync for DropEffects
impl Unpin for DropEffects
impl UnsafeUnpin for DropEffects
impl UnwindSafe for DropEffects
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