pub struct ChordState<const MAX_CHORD_SIZE: usize> {
pub index: usize,
pub chord: ChordIndices<MAX_CHORD_SIZE>,
pub is_satisfied: bool,
}
Expand description
State for a key chord.
Fields§
§index: usize
The chord index in the chorded config.
chord: ChordIndices<MAX_CHORD_SIZE>
The chord’s indices.
is_satisfied: bool
Whether the chord is satisfied by the pressed indices.
Trait Implementations§
Source§impl<const MAX_CHORD_SIZE: usize> Clone for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> Clone for ChordState<MAX_CHORD_SIZE>
Source§fn clone(&self) -> ChordState<MAX_CHORD_SIZE>
fn clone(&self) -> ChordState<MAX_CHORD_SIZE>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const MAX_CHORD_SIZE: usize> Debug for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> Debug for ChordState<MAX_CHORD_SIZE>
Source§impl<const MAX_CHORD_SIZE: usize> PartialEq for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> PartialEq for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> StructuralPartialEq for ChordState<MAX_CHORD_SIZE>
Auto Trait Implementations§
impl<const MAX_CHORD_SIZE: usize> Freeze for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> RefUnwindSafe for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> Send for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> Sync for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> Unpin for ChordState<MAX_CHORD_SIZE>
impl<const MAX_CHORD_SIZE: usize> UnwindSafe for ChordState<MAX_CHORD_SIZE>
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