Struct gdk::DragAction
source · [−]pub struct DragAction { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for DragAction
impl Binary for DragAction
sourceimpl BitAnd<DragAction> for DragAction
impl BitAnd<DragAction> for DragAction
sourcefn bitand(self, other: DragAction) -> DragAction
fn bitand(self, other: DragAction) -> DragAction
Returns the intersection between the two sets of flags.
type Output = DragAction
type Output = DragAction
& operator.sourceimpl BitAndAssign<DragAction> for DragAction
impl BitAndAssign<DragAction> for DragAction
sourcefn bitand_assign(&mut self, other: DragAction)
fn bitand_assign(&mut self, other: DragAction)
Disables all flags disabled in the set.
sourceimpl BitOr<DragAction> for DragAction
impl BitOr<DragAction> for DragAction
sourcefn bitor(self, other: DragAction) -> DragAction
fn bitor(self, other: DragAction) -> DragAction
Returns the union of the two sets of flags.
type Output = DragAction
type Output = DragAction
| operator.sourceimpl BitOrAssign<DragAction> for DragAction
impl BitOrAssign<DragAction> for DragAction
sourcefn bitor_assign(&mut self, other: DragAction)
fn bitor_assign(&mut self, other: DragAction)
Adds the set of flags.
sourceimpl BitXor<DragAction> for DragAction
impl BitXor<DragAction> for DragAction
sourcefn bitxor(self, other: DragAction) -> DragAction
fn bitxor(self, other: DragAction) -> DragAction
Returns the left flags, but with all the right flags toggled.
type Output = DragAction
type Output = DragAction
^ operator.sourceimpl BitXorAssign<DragAction> for DragAction
impl BitXorAssign<DragAction> for DragAction
sourcefn bitxor_assign(&mut self, other: DragAction)
fn bitxor_assign(&mut self, other: DragAction)
Toggles the set of flags.
sourceimpl Clone for DragAction
impl Clone for DragAction
sourcefn clone(&self) -> DragAction
fn clone(&self) -> DragAction
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for DragAction
impl Debug for DragAction
sourceimpl Extend<DragAction> for DragAction
impl Extend<DragAction> for DragAction
sourcefn extend<T: IntoIterator<Item = DragAction>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = DragAction>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<DragAction> for DragAction
impl FromIterator<DragAction> for DragAction
sourcefn from_iter<T: IntoIterator<Item = DragAction>>(iterator: T) -> DragAction
fn from_iter<T: IntoIterator<Item = DragAction>>(iterator: T) -> DragAction
sourceimpl<'a> FromValue<'a> for DragAction
impl<'a> FromValue<'a> for DragAction
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for DragAction
impl<'a> FromValueOptional<'a> for DragAction
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for DragAction
impl Hash for DragAction
sourceimpl LowerHex for DragAction
impl LowerHex for DragAction
sourceimpl Not for DragAction
impl Not for DragAction
sourcefn not(self) -> DragAction
fn not(self) -> DragAction
Returns the complement of this set of flags.
type Output = DragAction
type Output = DragAction
! operator.sourceimpl Octal for DragAction
impl Octal for DragAction
sourceimpl Ord for DragAction
impl Ord for DragAction
sourcefn cmp(&self, other: &DragAction) -> Ordering
fn cmp(&self, other: &DragAction) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<DragAction> for DragAction
impl PartialEq<DragAction> for DragAction
sourcefn eq(&self, other: &DragAction) -> bool
fn eq(&self, other: &DragAction) -> bool
sourceimpl PartialOrd<DragAction> for DragAction
impl PartialOrd<DragAction> for DragAction
sourcefn partial_cmp(&self, other: &DragAction) -> Option<Ordering>
fn partial_cmp(&self, other: &DragAction) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for DragAction
impl StaticType for DragAction
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<DragAction> for DragAction
impl Sub<DragAction> for DragAction
sourcefn sub(self, other: DragAction) -> DragAction
fn sub(self, other: DragAction) -> DragAction
Returns the set difference of the two sets of flags.
type Output = DragAction
type Output = DragAction
- operator.sourceimpl SubAssign<DragAction> for DragAction
impl SubAssign<DragAction> for DragAction
sourcefn sub_assign(&mut self, other: DragAction)
fn sub_assign(&mut self, other: DragAction)
Disables all flags enabled in the set.
sourceimpl UpperHex for DragAction
impl UpperHex for DragAction
impl Copy for DragAction
impl Eq for DragAction
impl StructuralEq for DragAction
impl StructuralPartialEq for DragAction
Auto Trait Implementations
impl RefUnwindSafe for DragAction
impl Send for DragAction
impl Sync for DragAction
impl Unpin for DragAction
impl UnwindSafe for DragAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.