KeyMod

Struct KeyMod 

Source
pub struct KeyMod(/* private fields */);
Expand description

A bitmask of keyboard modifiers.

Implementations§

Source§

impl KeyMod

§Flags

Source

pub const Shift: Self

Source

pub const Alt: Self

Source

pub const Ctrl: Self

Source

pub const Super: Self

Source

pub const Hyper: Self

Source

pub const Meta: Self

Source

pub const CapsLock: Self

Source

pub const NumLock: Self

Source

pub const None: Self

None of the modifiers (all bits set to 0).

Source

pub const Mask: Self

The modifier mask (all bits set to 1).

Source§

impl KeyMod

§methods

Source

pub fn has_none(&self) -> bool

Returns true if no modifiers are present.

Source

pub fn has_shift(&self) -> bool

Returns true if the Shift modifier is present.

Source

pub fn has_alt(&self) -> bool

Returns true if the Alt modifier is present.

Source

pub fn has_ctrl(&self) -> bool

Returns true if the Ctrl modifier is present.

Source

pub fn has_super(&self) -> bool

Returns true if the Super modifier is present.

Source

pub fn has_hyper(&self) -> bool

Returns true if the Hyper modifier is present.

Source

pub fn has_meta(&self) -> bool

Returns true if the Meta modifier is present.

Source

pub fn has_capslock(&self) -> bool

Returns true if the CapsLock modifier is present.

Source

pub fn has_numlock(&self) -> bool

Returns true if the NumLock modifier is present.

Trait Implementations§

Source§

impl Binary for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b> BitAnd<&'b KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b mut KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<&'b u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'b u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd<u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAnd for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: KeyMod) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b KeyMod> for &'a mut KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b KeyMod> for KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b KeyMod> for u32

Source§

fn bitand_assign(&mut self, rhs: &'b KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for &'a mut KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b mut KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b mut KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for u32

Source§

fn bitand_assign(&mut self, rhs: &'b mut KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b u32> for &'a mut KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b u32)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<&'b u32> for KeyMod

Source§

fn bitand_assign(&mut self, rhs: &'b u32)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<KeyMod> for &'a mut KeyMod

Source§

fn bitand_assign(&mut self, rhs: KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<KeyMod> for u32

Source§

fn bitand_assign(&mut self, rhs: KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<u32> for &'a mut KeyMod

Source§

fn bitand_assign(&mut self, rhs: u32)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign<u32> for KeyMod

Source§

fn bitand_assign(&mut self, rhs: u32)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitAndAssign for KeyMod

Source§

fn bitand_assign(&mut self, rhs: KeyMod)

Performs the &= operation. Read more
Source§

impl<'a, 'b> BitOr<&'b KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b mut KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<&'b u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'b u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr<u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOr for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: KeyMod) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b KeyMod> for &'a mut KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b KeyMod> for KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b KeyMod> for u32

Source§

fn bitor_assign(&mut self, rhs: &'b KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for &'a mut KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for u32

Source§

fn bitor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b u32> for &'a mut KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b u32)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<&'b u32> for KeyMod

Source§

fn bitor_assign(&mut self, rhs: &'b u32)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<KeyMod> for &'a mut KeyMod

Source§

fn bitor_assign(&mut self, rhs: KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<KeyMod> for u32

Source§

fn bitor_assign(&mut self, rhs: KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<u32> for &'a mut KeyMod

Source§

fn bitor_assign(&mut self, rhs: u32)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign<u32> for KeyMod

Source§

fn bitor_assign(&mut self, rhs: u32)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitOrAssign for KeyMod

Source§

fn bitor_assign(&mut self, rhs: KeyMod)

Performs the |= operation. Read more
Source§

impl<'a, 'b> BitXor<&'b KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b mut KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<&'b u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'b u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor<u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXor for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: KeyMod) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b KeyMod> for &'a mut KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b KeyMod> for KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b KeyMod> for u32

Source§

fn bitxor_assign(&mut self, rhs: &'b KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for &'a mut KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for u32

Source§

fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b u32> for &'a mut KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b u32)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<&'b u32> for KeyMod

Source§

fn bitxor_assign(&mut self, rhs: &'b u32)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<KeyMod> for &'a mut KeyMod

Source§

fn bitxor_assign(&mut self, rhs: KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<KeyMod> for u32

Source§

fn bitxor_assign(&mut self, rhs: KeyMod)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<u32> for &'a mut KeyMod

Source§

fn bitxor_assign(&mut self, rhs: u32)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign<u32> for KeyMod

Source§

fn bitxor_assign(&mut self, rhs: u32)

Performs the ^= operation. Read more
Source§

impl<'a, 'b> BitXorAssign for KeyMod

Source§

fn bitxor_assign(&mut self, rhs: KeyMod)

Performs the ^= operation. Read more
Source§

impl Clone for KeyMod

Source§

fn clone(&self) -> KeyMod

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for KeyMod

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<KeyMod> for NcKeyMod

Source§

fn from(k: KeyMod) -> Self

Converts to this type from the input type.
Source§

impl From<KeyMod> for u32

Source§

fn from(km: KeyMod) -> u32

Converts to this type from the input type.
Source§

impl From<NcKeyMod> for KeyMod

Source§

fn from(nc: NcKeyMod) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for KeyMod

Source§

fn from(u: u32) -> KeyMod

Converts to this type from the input type.
Source§

impl LowerHex for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Not for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<'a> Not for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<'a> Not for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Octal for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for KeyMod

Source§

fn eq(&self, other: &KeyMod) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, 'b> Shl<&'b KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b mut KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<&'b u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &'b u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl<u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> Shl for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: KeyMod) -> Self::Output

Performs the << operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b KeyMod> for &'a mut KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b KeyMod> for KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b KeyMod> for u32

Source§

fn shl_assign(&mut self, rhs: &'b KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b mut KeyMod> for &'a mut KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b mut KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b mut KeyMod> for KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b mut KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b mut KeyMod> for u32

Source§

fn shl_assign(&mut self, rhs: &'b mut KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b u32> for &'a mut KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b u32)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<&'b u32> for KeyMod

Source§

fn shl_assign(&mut self, rhs: &'b u32)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<KeyMod> for &'a mut KeyMod

Source§

fn shl_assign(&mut self, rhs: KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<KeyMod> for u32

Source§

fn shl_assign(&mut self, rhs: KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<u32> for &'a mut KeyMod

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign<u32> for KeyMod

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> ShlAssign for KeyMod

Source§

fn shl_assign(&mut self, rhs: KeyMod)

Performs the <<= operation. Read more
Source§

impl<'a, 'b> Shr<&'b KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut KeyMod> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b mut KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b mut KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<&'b u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &'b u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<KeyMod> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<KeyMod> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<KeyMod> for &'a u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<KeyMod> for u32

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<u32> for &'a KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<u32> for &'a mut KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr<u32> for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> Shr for KeyMod

Source§

type Output = KeyMod

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: KeyMod) -> Self::Output

Performs the >> operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b KeyMod> for &'a mut KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b KeyMod> for KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b KeyMod> for u32

Source§

fn shr_assign(&mut self, rhs: &'b KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b mut KeyMod> for &'a mut KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b mut KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b mut KeyMod> for KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b mut KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b mut KeyMod> for u32

Source§

fn shr_assign(&mut self, rhs: &'b mut KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b u32> for &'a mut KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b u32)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<&'b u32> for KeyMod

Source§

fn shr_assign(&mut self, rhs: &'b u32)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<KeyMod> for &'a mut KeyMod

Source§

fn shr_assign(&mut self, rhs: KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<KeyMod> for u32

Source§

fn shr_assign(&mut self, rhs: KeyMod)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<u32> for &'a mut KeyMod

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign<u32> for KeyMod

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl<'a, 'b> ShrAssign for KeyMod

Source§

fn shr_assign(&mut self, rhs: KeyMod)

Performs the >>= operation. Read more
Source§

impl UpperHex for KeyMod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for KeyMod

Source§

impl Eq for KeyMod

Source§

impl StructuralPartialEq for KeyMod

Auto Trait Implementations§

§

impl Freeze for KeyMod

§

impl RefUnwindSafe for KeyMod

§

impl Send for KeyMod

§

impl Sync for KeyMod

§

impl Unpin for KeyMod

§

impl UnwindSafe for KeyMod

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.