pub enum LayerMode {
Hold,
Toggle,
}Expand description
Layer activation mode
Determines how a layer becomes active and inactive.
Variants§
Hold
Layer is active while a modifier key is held
When the modifier key is released, the layer deactivates. This is the typical behavior for “layer shift” keys.
Toggle
Layer toggles on/off with each press
First press activates the layer, second press deactivates it. This is useful for “layer lock” functionality.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LayerMode
impl<'de> Deserialize<'de> for LayerMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for LayerMode
impl Eq for LayerMode
impl StructuralPartialEq for LayerMode
Auto Trait Implementations§
impl Freeze for LayerMode
impl RefUnwindSafe for LayerMode
impl Send for LayerMode
impl Sync for LayerMode
impl Unpin for LayerMode
impl UnsafeUnpin for LayerMode
impl UnwindSafe for LayerMode
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