pub enum SlotOverride {
Default,
Bound(KeyStroke),
Unbound,
}Expand description
Per-slot user override state.
Each slot (primary / secondary) independently records whether the
user has touched it. Default means “fall back to the widget’s
declared default at effective-lookup time” (so a later
re-registration with a different default flows through
automatically). Bound(ks) locks the slot to a specific chord,
and Unbound locks the slot to no chord.
Variants§
Default
User hasn’t touched this slot; use the shortcut’s current declared default.
Bound(KeyStroke)
User explicitly bound the slot to this chord.
Unbound
User explicitly unbound the slot.
Implementations§
Trait Implementations§
Source§impl Clone for SlotOverride
impl Clone for SlotOverride
Source§fn clone(&self) -> SlotOverride
fn clone(&self) -> SlotOverride
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlotOverride
Source§impl Debug for SlotOverride
impl Debug for SlotOverride
Source§impl Default for SlotOverride
impl Default for SlotOverride
Source§fn default() -> SlotOverride
fn default() -> SlotOverride
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlotOverride
impl<'de> Deserialize<'de> for SlotOverride
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 Eq for SlotOverride
Source§impl PartialEq for SlotOverride
impl PartialEq for SlotOverride
Source§impl Serialize for SlotOverride
impl Serialize for SlotOverride
impl StructuralPartialEq for SlotOverride
Auto Trait Implementations§
impl Freeze for SlotOverride
impl RefUnwindSafe for SlotOverride
impl Send for SlotOverride
impl Sync for SlotOverride
impl Unpin for SlotOverride
impl UnsafeUnpin for SlotOverride
impl UnwindSafe for SlotOverride
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