pub struct EventTagSet { /* private fields */ }event only.Expand description
Implementationsยง
Sourceยงimpl EventTagSet
Common event category groups.
impl EventTagSet
Common event category groups.
Sourceยงimpl EventTagSet
Named constants
impl EventTagSet
Named constants
Sourceยงimpl EventTagSet
Convenience methods derived from each named constant.
impl EventTagSet
Convenience methods derived from each named constant.
Sourcepub const fn contains_none(self) -> bool
pub const fn contains_none(self) -> bool
Returns true if all bits in None are present.
Sourcepub const fn intersects_none(self) -> bool
pub const fn intersects_none(self) -> bool
Returns true if the set shares any bit with None.
Sourcepub const fn with_none_if(self, condition: bool) -> Self
pub const fn with_none_if(self, condition: bool) -> Self
Returns self with None inserted if condition is true.
Sourcepub const fn without_none(self) -> Self
pub const fn without_none(self) -> Self
Returns self with None removed.
Sourcepub const fn set_none_if(&mut self, condition: bool)
pub const fn set_none_if(&mut self, condition: bool)
Sets None if condition is true.
Sourcepub const fn unset_none(&mut self)
pub const fn unset_none(&mut self)
Unsets None.
Sourcepub const fn contains_key(self) -> bool
pub const fn contains_key(self) -> bool
Returns true if all bits in Key are present.
Sourcepub const fn intersects_key(self) -> bool
pub const fn intersects_key(self) -> bool
Returns true if the set shares any bit with Key.
Sourcepub const fn with_key_if(self, condition: bool) -> Self
pub const fn with_key_if(self, condition: bool) -> Self
Returns self with Key inserted if condition is true.
Sourcepub const fn without_key(self) -> Self
pub const fn without_key(self) -> Self
Returns self with Key removed.
Sourcepub const fn set_key_if(&mut self, condition: bool)
pub const fn set_key_if(&mut self, condition: bool)
Sets Key if condition is true.
Sourcepub const fn contains_mouse(self) -> bool
pub const fn contains_mouse(self) -> bool
Returns true if all bits in Mouse are present.
Sourcepub const fn intersects_mouse(self) -> bool
pub const fn intersects_mouse(self) -> bool
Returns true if the set shares any bit with Mouse.
Sourcepub const fn with_mouse(self) -> Self
pub const fn with_mouse(self) -> Self
Returns self with Mouse inserted.
Sourcepub const fn with_mouse_if(self, condition: bool) -> Self
pub const fn with_mouse_if(self, condition: bool) -> Self
Returns self with Mouse inserted if condition is true.
Sourcepub const fn without_mouse(self) -> Self
pub const fn without_mouse(self) -> Self
Returns self with Mouse removed.
Sourcepub const fn set_mouse_if(&mut self, condition: bool)
pub const fn set_mouse_if(&mut self, condition: bool)
Sets Mouse if condition is true.
Sourcepub const fn unset_mouse(&mut self)
pub const fn unset_mouse(&mut self)
Unsets Mouse.
Sourcepub const fn has_pointer(self) -> bool
pub const fn has_pointer(self) -> bool
Returns true if Pointer is present.
Sourcepub const fn contains_pointer(self) -> bool
pub const fn contains_pointer(self) -> bool
Returns true if all bits in Pointer are present.
Sourcepub const fn intersects_pointer(self) -> bool
pub const fn intersects_pointer(self) -> bool
Returns true if the set shares any bit with Pointer.
Sourcepub const fn with_pointer(self) -> Self
pub const fn with_pointer(self) -> Self
Returns self with Pointer inserted.
Sourcepub const fn with_pointer_if(self, condition: bool) -> Self
pub const fn with_pointer_if(self, condition: bool) -> Self
Returns self with Pointer inserted if condition is true.
Sourcepub const fn without_pointer(self) -> Self
pub const fn without_pointer(self) -> Self
Returns self with Pointer removed.
Sourcepub const fn set_pointer(&mut self)
pub const fn set_pointer(&mut self)
Sets Pointer.
Sourcepub const fn set_pointer_if(&mut self, condition: bool)
pub const fn set_pointer_if(&mut self, condition: bool)
Sets Pointer if condition is true.
Sourcepub const fn unset_pointer(&mut self)
pub const fn unset_pointer(&mut self)
Unsets Pointer.
Sourcepub const fn contains_wheel(self) -> bool
pub const fn contains_wheel(self) -> bool
Returns true if all bits in Wheel are present.
Sourcepub const fn intersects_wheel(self) -> bool
pub const fn intersects_wheel(self) -> bool
Returns true if the set shares any bit with Wheel.
Sourcepub const fn with_wheel(self) -> Self
pub const fn with_wheel(self) -> Self
Returns self with Wheel inserted.
Sourcepub const fn with_wheel_if(self, condition: bool) -> Self
pub const fn with_wheel_if(self, condition: bool) -> Self
Returns self with Wheel inserted if condition is true.
Sourcepub const fn without_wheel(self) -> Self
pub const fn without_wheel(self) -> Self
Returns self with Wheel removed.
Sourcepub const fn set_wheel_if(&mut self, condition: bool)
pub const fn set_wheel_if(&mut self, condition: bool)
Sets Wheel if condition is true.
Sourcepub const fn unset_wheel(&mut self)
pub const fn unset_wheel(&mut self)
Unsets Wheel.
Sourcepub const fn has_window(self) -> bool
pub const fn has_window(self) -> bool
Returns true if Window is present.
Sourcepub const fn contains_window(self) -> bool
pub const fn contains_window(self) -> bool
Returns true if all bits in Window are present.
Sourcepub const fn intersects_window(self) -> bool
pub const fn intersects_window(self) -> bool
Returns true if the set shares any bit with Window.
Sourcepub const fn with_window(self) -> Self
pub const fn with_window(self) -> Self
Returns self with Window inserted.
Sourcepub const fn with_window_if(self, condition: bool) -> Self
pub const fn with_window_if(self, condition: bool) -> Self
Returns self with Window inserted if condition is true.
Sourcepub const fn without_window(self) -> Self
pub const fn without_window(self) -> Self
Returns self with Window removed.
Sourcepub const fn set_window(&mut self)
pub const fn set_window(&mut self)
Sets Window.
Sourcepub const fn set_window_if(&mut self, condition: bool)
pub const fn set_window_if(&mut self, condition: bool)
Sets Window if condition is true.
Sourcepub const fn unset_window(&mut self)
pub const fn unset_window(&mut self)
Unsets Window.
Sourcepub const fn has_control(self) -> bool
pub const fn has_control(self) -> bool
Returns true if Control is present.
Sourcepub const fn contains_control(self) -> bool
pub const fn contains_control(self) -> bool
Returns true if all bits in Control are present.
Sourcepub const fn intersects_control(self) -> bool
pub const fn intersects_control(self) -> bool
Returns true if the set shares any bit with Control.
Sourcepub const fn with_control(self) -> Self
pub const fn with_control(self) -> Self
Returns self with Control inserted.
Sourcepub const fn with_control_if(self, condition: bool) -> Self
pub const fn with_control_if(self, condition: bool) -> Self
Returns self with Control inserted if condition is true.
Sourcepub const fn without_control(self) -> Self
pub const fn without_control(self) -> Self
Returns self with Control removed.
Sourcepub const fn set_control(&mut self)
pub const fn set_control(&mut self)
Sets Control.
Sourcepub const fn set_control_if(&mut self, condition: bool)
pub const fn set_control_if(&mut self, condition: bool)
Sets Control if condition is true.
Sourcepub const fn unset_control(&mut self)
pub const fn unset_control(&mut self)
Unsets Control.
Sourceยงimpl EventTagSet
Common set methods
impl EventTagSet
Common set methods
Sourceยงimpl EventTagSet
Set operations
impl EventTagSet
Set operations
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self and other share any bit.
Sourcepub const fn is_subset(self, other: Self) -> bool
pub const fn is_subset(self, other: Self) -> bool
Returns true if all bits in self are also set in other.
Sourcepub const fn is_superset(self, other: Self) -> bool
pub const fn is_superset(self, other: Self) -> bool
Returns true if all bits in other are also set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference of self and other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference of self and other.
Sourceยงimpl EventTagSet
Mutating set operations
impl EventTagSet
Mutating set operations
Trait Implementationsยง
Sourceยงimpl Binary for EventTagSet
Formats the set as a binary mask over its declared bit domain.
impl Binary for EventTagSet
Formats the set as a binary mask over its declared bit domain.
Sourceยงimpl BitAnd for EventTagSet
impl BitAnd for EventTagSet
Sourceยงimpl BitAndAssign for EventTagSet
impl BitAndAssign for EventTagSet
Sourceยงfn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSourceยงimpl BitOr for EventTagSet
impl BitOr for EventTagSet
Sourceยงimpl BitOrAssign for EventTagSet
impl BitOrAssign for EventTagSet
Sourceยงfn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSourceยงimpl BitSized<{ $Set::_SET_BIT_SIZE }> for EventTagSet
impl BitSized<{ $Set::_SET_BIT_SIZE }> for EventTagSet
Sourceยงconst BIT_SIZE: usize = _
const BIT_SIZE: usize = _
Sourceยงconst MIN_BYTE_SIZE: usize = _
const MIN_BYTE_SIZE: usize = _
Sourceยงfn bit_size(&self) -> usize
fn bit_size(&self) -> usize
Sourceยงfn min_byte_size(&self) -> usize
fn min_byte_size(&self) -> usize
Sourceยงimpl BitXor for EventTagSet
impl BitXor for EventTagSet
Sourceยงimpl BitXorAssign for EventTagSet
impl BitXorAssign for EventTagSet
Sourceยงfn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSourceยงimpl Clone for EventTagSet
impl Clone for EventTagSet
Sourceยงfn clone(&self) -> EventTagSet
fn clone(&self) -> EventTagSet
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl ConstInit for EventTagSet
impl ConstInit for EventTagSet
impl Copy for EventTagSet
Sourceยงimpl Debug for EventTagSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Debug for EventTagSet
Formats the set as a prefixed binary mask over its declared bit domain.
Sourceยงimpl DebugExt for EventTagSetwhere
EventTagSet: Debug,
impl DebugExt for EventTagSetwhere
EventTagSet: Debug,
Sourceยงimpl Default for EventTagSet
impl Default for EventTagSet
Sourceยงimpl Display for EventTagSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Display for EventTagSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Eq for EventTagSet
Sourceยงimpl Hash for EventTagSet
impl Hash for EventTagSet
Sourceยงimpl LowerHex for EventTagSet
Formats the set as a hexadecimal mask over its declared bit domain.
impl LowerHex for EventTagSet
Formats the set as a hexadecimal mask over its declared bit domain.
Sourceยงimpl Not for EventTagSet
impl Not for EventTagSet
Sourceยงimpl Octal for EventTagSet
Formats the set as an octal mask over its declared bit domain.
impl Octal for EventTagSet
Formats the set as an octal mask over its declared bit domain.
Sourceยงimpl Ord for EventTagSet
impl Ord for EventTagSet
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialEq for EventTagSet
impl PartialEq for EventTagSet
Sourceยงimpl PartialOrd for EventTagSet
impl PartialOrd for EventTagSet
Sourceยงimpl Sub for EventTagSet
impl Sub for EventTagSet
Sourceยงimpl SubAssign for EventTagSet
impl SubAssign for EventTagSet
Sourceยงfn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementationsยง
impl Freeze for EventTagSet
impl RefUnwindSafe for EventTagSet
impl Send for EventTagSet
impl Sync for EventTagSet
impl Unpin for EventTagSet
impl UnsafeUnpin for EventTagSet
impl UnwindSafe for EventTagSet
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.