pub struct EventBit { /* private fields */ }Expand description
Flags describing wayland events
Implementations§
Source§impl EventBit
impl EventBit
Sourcepub fn from_bits(bits: u32) -> Option<EventBit>
pub fn from_bits(bits: u32) -> Option<EventBit>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> EventBit
pub fn from_bits_truncate(bits: u32) -> EventBit
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: EventBit) -> bool
pub fn intersects(&self, other: EventBit) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for EventBit
impl BitAndAssign for EventBit
Source§fn bitand_assign(&mut self, other: EventBit)
fn bitand_assign(&mut self, other: EventBit)
Disables all flags disabled in the set.
Source§impl BitOrAssign for EventBit
impl BitOrAssign for EventBit
Source§fn bitor_assign(&mut self, other: EventBit)
fn bitor_assign(&mut self, other: EventBit)
Adds the set of flags.
Source§impl BitXorAssign for EventBit
impl BitXorAssign for EventBit
Source§fn bitxor_assign(&mut self, other: EventBit)
fn bitxor_assign(&mut self, other: EventBit)
Toggles the set of flags.
Source§impl Extend<EventBit> for EventBit
impl Extend<EventBit> for EventBit
Source§fn extend<T: IntoIterator<Item = EventBit>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = EventBit>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<EventBit> for EventBit
impl FromIterator<EventBit> for EventBit
Source§impl Ord for EventBit
impl Ord for EventBit
Source§impl PartialOrd for EventBit
impl PartialOrd for EventBit
Source§impl SubAssign for EventBit
impl SubAssign for EventBit
Source§fn sub_assign(&mut self, other: EventBit)
fn sub_assign(&mut self, other: EventBit)
Disables all flags enabled in the set.
impl Copy for EventBit
impl Eq for EventBit
impl StructuralPartialEq for EventBit
Auto Trait Implementations§
impl Freeze for EventBit
impl RefUnwindSafe for EventBit
impl Send for EventBit
impl Sync for EventBit
impl Unpin for EventBit
impl UnwindSafe for EventBit
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