pub struct MK(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
wm::LButtonDown
(and similar) virtual
keys (u16
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl MK
impl MK
sourcepub const unsafe fn from_raw(v: u16) -> Self
pub const unsafe fn from_raw(v: u16) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u16
pub const fn raw(&self) -> u16
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
Trait Implementations§
source§impl BitAndAssign for MK
impl BitAndAssign for MK
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for MK
impl BitOrAssign for MK
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for MK
impl BitXorAssign for MK
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl IntUnderlying for MK
impl IntUnderlying for MK
source§impl NativeBitflag for MK
impl NativeBitflag for MK
source§impl Ord for MK
impl Ord for MK
source§impl PartialOrd for MK
impl PartialOrd for MK
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MK
impl Eq for MK
impl NativeConst for MK
impl Send for MK
impl StructuralPartialEq for MK
Auto Trait Implementations§
impl Freeze for MK
impl RefUnwindSafe for MK
impl Sync for MK
impl Unpin for MK
impl UnwindSafe for MK
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