pub struct Modifiers(/* private fields */);
Expand description
The modifiers.
This type is a thin wrappers around keyboard_types::Modifiers
,
mostly for the convenience methods. If those get upstreamed, it
will simply become that type.
Implementations§
Source§impl Modifiers
impl Modifiers
pub const ALT: Modifiers
pub const ALT_GRAPH: Modifiers
pub const CAPS_LOCK: Modifiers
pub const CONTROL: Modifiers
pub const FN: Modifiers
pub const FN_LOCK: Modifiers
pub const META: Modifiers
pub const NUM_LOCK: Modifiers
pub const SCROLL_LOCK: Modifiers
pub const SHIFT: Modifiers
pub const SYMBOL: Modifiers
pub const SYMBOL_LOCK: Modifiers
pub const HYPER: Modifiers
pub const SUPER: Modifiers
Sourcepub fn raw(&self) -> Modifiers
pub fn raw(&self) -> Modifiers
Get the inner value.
Note that this function might go away if our changes are upstreamed.
Trait Implementations§
Source§impl BitAndAssign for Modifiers
impl BitAndAssign for Modifiers
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for Modifiers
impl BitOrAssign for Modifiers
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for Modifiers
impl BitXorAssign for Modifiers
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreimpl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.