pub struct RowView<A> {
pub action: A,
pub label: String,
pub fixed: Vec<String>,
pub slots: Vec<SlotView>,
pub focus: Option<usize>,
pub unmapped: bool,
pub blocks_leaving: bool,
pub lost_key: bool,
}Expand description
One action.
Fields§
§action: AWhich action it is.
label: StringIts name.
fixed: Vec<String>The keys it also has that can’t be changed (keyboard side only).
slots: Vec<SlotView>What each of its slots holds.
focus: Option<usize>The slot the cursor is on, if the cursor is on this row.
unmapped: boolWhether nothing is in any of its slots.
blocks_leaving: boolWhether it is unmapped and so blocks leaving the screen (a required action with nothing on the shown side).
lost_key: boolWhether it just lost its key to another slot (it stays highlighted for a moment).
Implementations§
Trait Implementations§
impl<A: Eq> Eq for RowView<A>
impl<A: PartialEq> StructuralPartialEq for RowView<A>
Auto Trait Implementations§
impl<A> Freeze for RowView<A>where
A: Freeze,
impl<A> RefUnwindSafe for RowView<A>where
A: RefUnwindSafe,
impl<A> Send for RowView<A>where
A: Send,
impl<A> Sync for RowView<A>where
A: Sync,
impl<A> Unpin for RowView<A>where
A: Unpin,
impl<A> UnsafeUnpin for RowView<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for RowView<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