Struct components::SwipeDirection [−][src]
pub struct SwipeDirection { /* fields omitted */ }
Implementations
impl SwipeDirection
[src]
impl SwipeDirection
[src]pub const UP: SwipeDirection
[src]
pub const DOWN: SwipeDirection
[src]
pub const LEFT: SwipeDirection
[src]
pub const RIGHT: SwipeDirection
[src]
pub const fn empty() -> SwipeDirection
[src]
Returns an empty set of flags
pub const fn all() -> SwipeDirection
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<SwipeDirection>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> SwipeDirection
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> SwipeDirection
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: SwipeDirection) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: SwipeDirection) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: SwipeDirection)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: SwipeDirection)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: SwipeDirection)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: SwipeDirection, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for SwipeDirection
[src]
impl Binary for SwipeDirection
[src]impl BitAnd<SwipeDirection> for SwipeDirection
[src]
impl BitAnd<SwipeDirection> for SwipeDirection
[src]type Output = SwipeDirection
The resulting type after applying the &
operator.
pub fn bitand(self, other: SwipeDirection) -> SwipeDirection
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<SwipeDirection> for SwipeDirection
[src]
impl BitAndAssign<SwipeDirection> for SwipeDirection
[src]pub fn bitand_assign(&mut self, other: SwipeDirection)
[src]
Disables all flags disabled in the set.
impl BitOr<SwipeDirection> for SwipeDirection
[src]
impl BitOr<SwipeDirection> for SwipeDirection
[src]type Output = SwipeDirection
The resulting type after applying the |
operator.
pub fn bitor(self, other: SwipeDirection) -> SwipeDirection
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<SwipeDirection> for SwipeDirection
[src]
impl BitOrAssign<SwipeDirection> for SwipeDirection
[src]pub fn bitor_assign(&mut self, other: SwipeDirection)
[src]
Adds the set of flags.
impl BitXor<SwipeDirection> for SwipeDirection
[src]
impl BitXor<SwipeDirection> for SwipeDirection
[src]type Output = SwipeDirection
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: SwipeDirection) -> SwipeDirection
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<SwipeDirection> for SwipeDirection
[src]
impl BitXorAssign<SwipeDirection> for SwipeDirection
[src]pub fn bitxor_assign(&mut self, other: SwipeDirection)
[src]
Toggles the set of flags.
impl Clone for SwipeDirection
[src]
impl Clone for SwipeDirection
[src]pub fn clone(&self) -> SwipeDirection
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SwipeDirection
[src]
impl Copy for SwipeDirection
[src]impl Debug for SwipeDirection
[src]
impl Debug for SwipeDirection
[src]impl Eq for SwipeDirection
[src]
impl Eq for SwipeDirection
[src]impl Extend<SwipeDirection> for SwipeDirection
[src]
impl Extend<SwipeDirection> for SwipeDirection
[src]pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = SwipeDirection>,
[src]
T: IntoIterator<Item = SwipeDirection>,
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<SwipeDirection> for SwipeDirection
[src]
impl FromIterator<SwipeDirection> for SwipeDirection
[src]pub fn from_iter<T>(iterator: T) -> SwipeDirection where
T: IntoIterator<Item = SwipeDirection>,
[src]
T: IntoIterator<Item = SwipeDirection>,
impl<'a> FromValue<'a> for SwipeDirection
[src]
impl<'a> FromValue<'a> for SwipeDirection
[src]pub unsafe fn from_value(value: &Value) -> SwipeDirection
[src]
impl<'a> FromValueOptional<'a> for SwipeDirection
[src]
impl<'a> FromValueOptional<'a> for SwipeDirection
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<SwipeDirection>
[src]
impl Hash for SwipeDirection
[src]
impl Hash for SwipeDirection
[src]impl LowerHex for SwipeDirection
[src]
impl LowerHex for SwipeDirection
[src]impl Not for SwipeDirection
[src]
impl Not for SwipeDirection
[src]type Output = SwipeDirection
The resulting type after applying the !
operator.
pub fn not(self) -> SwipeDirection
[src]
Returns the complement of this set of flags.
impl Octal for SwipeDirection
[src]
impl Octal for SwipeDirection
[src]impl Ord for SwipeDirection
[src]
impl Ord for SwipeDirection
[src]impl PartialEq<SwipeDirection> for SwipeDirection
[src]
impl PartialEq<SwipeDirection> for SwipeDirection
[src]pub fn eq(&self, other: &SwipeDirection) -> bool
[src]
pub fn ne(&self, other: &SwipeDirection) -> bool
[src]
impl PartialOrd<SwipeDirection> for SwipeDirection
[src]
impl PartialOrd<SwipeDirection> for SwipeDirection
[src]pub fn partial_cmp(&self, other: &SwipeDirection) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl SetValue for SwipeDirection
[src]
impl SetValue for SwipeDirection
[src]pub unsafe fn set_value(value: &mut Value, this: &SwipeDirection)
[src]
impl StaticType for SwipeDirection
[src]
impl StaticType for SwipeDirection
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for SwipeDirection
[src]
impl StructuralEq for SwipeDirection
[src]impl StructuralPartialEq for SwipeDirection
[src]
impl StructuralPartialEq for SwipeDirection
[src]impl Sub<SwipeDirection> for SwipeDirection
[src]
impl Sub<SwipeDirection> for SwipeDirection
[src]type Output = SwipeDirection
The resulting type after applying the -
operator.
pub fn sub(self, other: SwipeDirection) -> SwipeDirection
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<SwipeDirection> for SwipeDirection
[src]
impl SubAssign<SwipeDirection> for SwipeDirection
[src]pub fn sub_assign(&mut self, other: SwipeDirection)
[src]
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for SwipeDirection
impl RefUnwindSafe for SwipeDirection
impl Send for SwipeDirection
impl Send for SwipeDirection
impl Sync for SwipeDirection
impl Sync for SwipeDirection
impl Unpin for SwipeDirection
impl Unpin for SwipeDirection
impl UnwindSafe for SwipeDirection
impl UnwindSafe for SwipeDirection
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
pub fn into_color(self) -> To
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,