pub struct MOD(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
RegisterHotKey
modifiers
(u16
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl MOD
impl MOD
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 MOD
impl BitAndAssign for MOD
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for MOD
impl BitOrAssign for MOD
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for MOD
impl BitXorAssign for MOD
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl IntUnderlying for MOD
impl IntUnderlying for MOD
source§impl NativeBitflag for MOD
impl NativeBitflag for MOD
source§impl Ord for MOD
impl Ord for MOD
source§impl PartialOrd for MOD
impl PartialOrd for MOD
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 MOD
impl Eq for MOD
impl NativeConst for MOD
impl Send for MOD
impl StructuralPartialEq for MOD
Auto Trait Implementations§
impl Freeze for MOD
impl RefUnwindSafe for MOD
impl Sync for MOD
impl Unpin for MOD
impl UnwindSafe for MOD
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