Struct ActionMessageFlag
pub struct ActionMessageFlag(/* private fields */);
Implementations§
§impl ActionMessageFlag
impl ActionMessageFlag
pub const ON_PRESS: ActionMessageFlag = _
pub const ON_RELEASE: ActionMessageFlag = _
pub const GEN_KEY_EVENT: ActionMessageFlag = _
§impl ActionMessageFlag
impl ActionMessageFlag
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>) -> ActionMessageFlag
pub fn remove(self, flags: impl Into<u8>) -> ActionMessageFlag
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 ActionMessageFlag
impl BitAnd<u8> for ActionMessageFlag
§impl BitAnd for ActionMessageFlag
impl BitAnd for ActionMessageFlag
§type Output = ActionMessageFlag
type Output = ActionMessageFlag
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ActionMessageFlag,
) -> <ActionMessageFlag as BitAnd>::Output
fn bitand( self, other: ActionMessageFlag, ) -> <ActionMessageFlag as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for ActionMessageFlag
impl BitAndAssign<u8> for ActionMessageFlag
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for ActionMessageFlag
impl BitAndAssign for ActionMessageFlag
§fn bitand_assign(&mut self, other: ActionMessageFlag)
fn bitand_assign(&mut self, other: ActionMessageFlag)
Performs the
&=
operation. Read more§impl BitOr<u8> for ActionMessageFlag
impl BitOr<u8> for ActionMessageFlag
§impl BitOr for ActionMessageFlag
impl BitOr for ActionMessageFlag
§type Output = ActionMessageFlag
type Output = ActionMessageFlag
The resulting type after applying the
|
operator.§fn bitor(self, other: ActionMessageFlag) -> <ActionMessageFlag as BitOr>::Output
fn bitor(self, other: ActionMessageFlag) -> <ActionMessageFlag as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for ActionMessageFlag
impl BitOrAssign<u8> for ActionMessageFlag
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for ActionMessageFlag
impl BitOrAssign for ActionMessageFlag
§fn bitor_assign(&mut self, other: ActionMessageFlag)
fn bitor_assign(&mut self, other: ActionMessageFlag)
Performs the
|=
operation. Read more§impl Clone for ActionMessageFlag
impl Clone for ActionMessageFlag
§fn clone(&self) -> ActionMessageFlag
fn clone(&self) -> ActionMessageFlag
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 ActionMessageFlag
impl Debug for ActionMessageFlag
§impl Default for ActionMessageFlag
impl Default for ActionMessageFlag
§fn default() -> ActionMessageFlag
fn default() -> ActionMessageFlag
Returns the “default value” for a type. Read more
§impl From<u8> for ActionMessageFlag
impl From<u8> for ActionMessageFlag
§fn from(value: u8) -> ActionMessageFlag
fn from(value: u8) -> ActionMessageFlag
Converts to this type from the input type.
§impl Hash for ActionMessageFlag
impl Hash for ActionMessageFlag
§impl Ord for ActionMessageFlag
impl Ord for ActionMessageFlag
§fn cmp(&self, other: &ActionMessageFlag) -> Ordering
fn cmp(&self, other: &ActionMessageFlag) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ActionMessageFlag
impl PartialEq for ActionMessageFlag
§impl PartialOrd for ActionMessageFlag
impl PartialOrd for ActionMessageFlag
impl Copy for ActionMessageFlag
impl Eq for ActionMessageFlag
impl StructuralPartialEq for ActionMessageFlag
Auto Trait Implementations§
impl Freeze for ActionMessageFlag
impl RefUnwindSafe for ActionMessageFlag
impl Send for ActionMessageFlag
impl Sync for ActionMessageFlag
impl Unpin for ActionMessageFlag
impl UnwindSafe for ActionMessageFlag
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
)