Struct MoreEventsMask
pub struct MoreEventsMask(/* private fields */);
Implementations§
§impl MoreEventsMask
impl MoreEventsMask
pub const MORE_EVENTS: MoreEventsMask = _
§impl MoreEventsMask
impl MoreEventsMask
pub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u8>) -> MoreEventsMask
pub fn remove(self, flags: impl Into<u8>) -> MoreEventsMask
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u8> for MoreEventsMask
impl BitAnd<u8> for MoreEventsMask
§impl BitAnd for MoreEventsMask
impl BitAnd for MoreEventsMask
§type Output = MoreEventsMask
type Output = MoreEventsMask
The resulting type after applying the
&
operator.§fn bitand(self, other: MoreEventsMask) -> <MoreEventsMask as BitAnd>::Output
fn bitand(self, other: MoreEventsMask) -> <MoreEventsMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for MoreEventsMask
impl BitAndAssign<u8> for MoreEventsMask
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for MoreEventsMask
impl BitAndAssign for MoreEventsMask
§fn bitand_assign(&mut self, other: MoreEventsMask)
fn bitand_assign(&mut self, other: MoreEventsMask)
Performs the
&=
operation. Read more§impl BitOr<u8> for MoreEventsMask
impl BitOr<u8> for MoreEventsMask
§impl BitOr for MoreEventsMask
impl BitOr for MoreEventsMask
§type Output = MoreEventsMask
type Output = MoreEventsMask
The resulting type after applying the
|
operator.§fn bitor(self, other: MoreEventsMask) -> <MoreEventsMask as BitOr>::Output
fn bitor(self, other: MoreEventsMask) -> <MoreEventsMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for MoreEventsMask
impl BitOrAssign<u8> for MoreEventsMask
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for MoreEventsMask
impl BitOrAssign for MoreEventsMask
§fn bitor_assign(&mut self, other: MoreEventsMask)
fn bitor_assign(&mut self, other: MoreEventsMask)
Performs the
|=
operation. Read more§impl Clone for MoreEventsMask
impl Clone for MoreEventsMask
§fn clone(&self) -> MoreEventsMask
fn clone(&self) -> MoreEventsMask
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MoreEventsMask
impl Debug for MoreEventsMask
§impl Default for MoreEventsMask
impl Default for MoreEventsMask
§fn default() -> MoreEventsMask
fn default() -> MoreEventsMask
Returns the “default value” for a type. Read more
§impl From<u8> for MoreEventsMask
impl From<u8> for MoreEventsMask
§fn from(value: u8) -> MoreEventsMask
fn from(value: u8) -> MoreEventsMask
Converts to this type from the input type.
§impl Hash for MoreEventsMask
impl Hash for MoreEventsMask
§impl Ord for MoreEventsMask
impl Ord for MoreEventsMask
§impl PartialEq for MoreEventsMask
impl PartialEq for MoreEventsMask
§impl PartialOrd for MoreEventsMask
impl PartialOrd for MoreEventsMask
impl Copy for MoreEventsMask
impl Eq for MoreEventsMask
impl StructuralPartialEq for MoreEventsMask
Auto Trait Implementations§
impl Freeze for MoreEventsMask
impl RefUnwindSafe for MoreEventsMask
impl Send for MoreEventsMask
impl Sync for MoreEventsMask
impl Unpin for MoreEventsMask
impl UnwindSafe for MoreEventsMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)