Enum r3bl_rs_utils::ModifierKeyEnum
source · pub enum ModifierKeyEnum {
Show 14 variants
LeftShift,
LeftControl,
LeftAlt,
LeftSuper,
LeftHyper,
LeftMeta,
RightShift,
RightControl,
RightAlt,
RightSuper,
RightHyper,
RightMeta,
IsoLevel3Shift,
IsoLevel5Shift,
}
Expand description
Crossterm docs:
Note: these keys can only be read if both
KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
and
KeyboardEnhancementFlags::REPORT_ALL_KEYS_AS_ESCAPE_CODES
have been enabled with
PushKeyboardEnhancementFlags
.
Variants§
LeftShift
Left Shift key.
LeftControl
Left Control key.
LeftAlt
Left Alt key.
LeftSuper
Left Super key.
LeftHyper
Left Hyper key.
LeftMeta
Left Meta key.
RightShift
Right Shift key.
RightControl
Right Control key.
RightAlt
Right Alt key.
RightSuper
Right Super key.
RightHyper
Right Hyper key.
RightMeta
Right Meta key.
IsoLevel3Shift
Iso Level3 Shift key.
IsoLevel5Shift
Iso Level5 Shift key.
Trait Implementations§
source§impl Clone for ModifierKeyEnum
impl Clone for ModifierKeyEnum
source§fn clone(&self) -> ModifierKeyEnum
fn clone(&self) -> ModifierKeyEnum
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 moresource§impl Debug for ModifierKeyEnum
impl Debug for ModifierKeyEnum
source§impl<'de> Deserialize<'de> for ModifierKeyEnum
impl<'de> Deserialize<'de> for ModifierKeyEnum
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ModifierKeyEnum, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ModifierKeyEnum, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ModifierKeyEnum> for ModifierKeyEnum
impl PartialEq<ModifierKeyEnum> for ModifierKeyEnum
source§fn eq(&self, other: &ModifierKeyEnum) -> bool
fn eq(&self, other: &ModifierKeyEnum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ModifierKeyEnum
impl Serialize for ModifierKeyEnum
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ModifierKeyEnum
impl Eq for ModifierKeyEnum
impl StructuralEq for ModifierKeyEnum
impl StructuralPartialEq for ModifierKeyEnum
Auto Trait Implementations§
impl RefUnwindSafe for ModifierKeyEnum
impl Send for ModifierKeyEnum
impl Sync for ModifierKeyEnum
impl Unpin for ModifierKeyEnum
impl UnwindSafe for ModifierKeyEnum
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: FloatComponent, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read more