pub enum LayerOp {
Momentary(u8),
Toggle(u8),
}Expand description
Keycode for layer operations.
Variants§
Momentary(u8)
Momentary activates the specified layer.
Toggle(u8)
Toggles the state of the specified layer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LayerOp
impl<'de> Deserialize<'de> for LayerOp
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
Source§impl IntoEnumIterator for LayerOp
impl IntoEnumIterator for LayerOp
type Iterator = LayerOpIter
fn iter() -> LayerOpIter ⓘ
Source§impl MaxSize for LayerOp
impl MaxSize for LayerOp
Source§const POSTCARD_MAX_SIZE: usize = 2usize
const POSTCARD_MAX_SIZE: usize = 2usize
The maximum possible size that the serialization of this
type can have, in bytes.
impl Copy for LayerOp
impl Eq for LayerOp
impl StructuralPartialEq for LayerOp
Auto Trait Implementations§
impl Freeze for LayerOp
impl RefUnwindSafe for LayerOp
impl Send for LayerOp
impl Sync for LayerOp
impl Unpin for LayerOp
impl UnwindSafe for LayerOp
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