pub struct Binding<A> {
pub id: BindingId,
pub chord: Chord,
pub action: A,
pub priority: Priority,
pub context: Option<ContextId>,
pub label: Option<String>,
}Expand description
One chord bound to an action.
Fields§
§id: BindingIdIdentifier assigned by the map.
chord: ChordThe chord that triggers the action.
action: AThe action to dispatch.
priority: PriorityPriority level.
context: Option<ContextId>Context the binding is limited to (None = always applicable).
label: Option<String>Human-readable label for help bars and conflict reports.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Binding<A>where
A: Freeze,
impl<A> RefUnwindSafe for Binding<A>where
A: RefUnwindSafe,
impl<A> Send for Binding<A>where
A: Send,
impl<A> Sync for Binding<A>where
A: Sync,
impl<A> Unpin for Binding<A>where
A: Unpin,
impl<A> UnsafeUnpin for Binding<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Binding<A>where
A: UnwindSafe,
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