pub struct DragAction { /* private fields */ }
Implementations§
Source§impl DragAction
impl DragAction
pub const DEFAULT: DragAction
pub const COPY: DragAction
pub const MOVE: DragAction
pub const LINK: DragAction
pub const PRIVATE: DragAction
pub const ASK: DragAction
Sourcepub const fn empty() -> DragAction
pub const fn empty() -> DragAction
Returns an empty set of flags
Sourcepub const fn all() -> DragAction
pub const fn all() -> DragAction
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<DragAction>
pub fn from_bits(bits: u32) -> Option<DragAction>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> DragAction
pub const fn from_bits_truncate(bits: u32) -> DragAction
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> DragAction
pub const unsafe fn from_bits_unchecked(bits: u32) -> DragAction
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: DragAction) -> bool
pub const fn intersects(&self, other: DragAction) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: DragAction) -> bool
pub const fn contains(&self, other: DragAction) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: DragAction)
pub fn insert(&mut self, other: DragAction)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: DragAction)
pub fn remove(&mut self, other: DragAction)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: DragAction)
pub fn toggle(&mut self, other: DragAction)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: DragAction, value: bool)
pub fn set(&mut self, other: DragAction, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for DragAction
impl Binary for DragAction
Source§impl BitAnd for DragAction
impl BitAnd for DragAction
Source§fn bitand(self, other: DragAction) -> DragAction
fn bitand(self, other: DragAction) -> DragAction
Returns the intersection between the two sets of flags.
Source§type Output = DragAction
type Output = DragAction
&
operator.Source§impl BitAndAssign for DragAction
impl BitAndAssign for DragAction
Source§fn bitand_assign(&mut self, other: DragAction)
fn bitand_assign(&mut self, other: DragAction)
Disables all flags disabled in the set.
Source§impl BitOr for DragAction
impl BitOr for DragAction
Source§fn bitor(self, other: DragAction) -> DragAction
fn bitor(self, other: DragAction) -> DragAction
Returns the union of the two sets of flags.
Source§type Output = DragAction
type Output = DragAction
|
operator.Source§impl BitOrAssign for DragAction
impl BitOrAssign for DragAction
Source§fn bitor_assign(&mut self, other: DragAction)
fn bitor_assign(&mut self, other: DragAction)
Adds the set of flags.
Source§impl BitXor for DragAction
impl BitXor for DragAction
Source§fn bitxor(self, other: DragAction) -> DragAction
fn bitxor(self, other: DragAction) -> DragAction
Returns the left flags, but with all the right flags toggled.
Source§type Output = DragAction
type Output = DragAction
^
operator.Source§impl BitXorAssign for DragAction
impl BitXorAssign for DragAction
Source§fn bitxor_assign(&mut self, other: DragAction)
fn bitxor_assign(&mut self, other: DragAction)
Toggles the set of flags.
Source§impl Clone for DragAction
impl Clone for DragAction
Source§fn clone(&self) -> DragAction
fn clone(&self) -> DragAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DragAction
impl Debug for DragAction
Source§impl Extend<DragAction> for DragAction
impl Extend<DragAction> for DragAction
Source§fn extend<T: IntoIterator<Item = DragAction>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = DragAction>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<DragAction> for DragAction
impl FromIterator<DragAction> for DragAction
Source§fn from_iter<T: IntoIterator<Item = DragAction>>(iterator: T) -> DragAction
fn from_iter<T: IntoIterator<Item = DragAction>>(iterator: T) -> DragAction
Source§impl<'a> FromValue<'a> for DragAction
impl<'a> FromValue<'a> for DragAction
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for DragAction
impl<'a> FromValueOptional<'a> for DragAction
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for DragAction
impl Hash for DragAction
Source§impl LowerHex for DragAction
impl LowerHex for DragAction
Source§impl Not for DragAction
impl Not for DragAction
Source§fn not(self) -> DragAction
fn not(self) -> DragAction
Returns the complement of this set of flags.
Source§type Output = DragAction
type Output = DragAction
!
operator.Source§impl Octal for DragAction
impl Octal for DragAction
Source§impl Ord for DragAction
impl Ord for DragAction
Source§fn cmp(&self, other: &DragAction) -> Ordering
fn cmp(&self, other: &DragAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DragAction
impl PartialEq for DragAction
Source§impl PartialOrd for DragAction
impl PartialOrd for DragAction
Source§impl StaticType for DragAction
impl StaticType for DragAction
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for DragAction
impl Sub for DragAction
Source§fn sub(self, other: DragAction) -> DragAction
fn sub(self, other: DragAction) -> DragAction
Returns the set difference of the two sets of flags.
Source§type Output = DragAction
type Output = DragAction
-
operator.Source§impl SubAssign for DragAction
impl SubAssign for DragAction
Source§fn sub_assign(&mut self, other: DragAction)
fn sub_assign(&mut self, other: DragAction)
Disables all flags enabled in the set.
Source§impl UpperHex for DragAction
impl UpperHex for DragAction
impl Copy for DragAction
impl Eq for DragAction
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.