pub struct ChordState {
pub index: usize,
pub chord: ChordIndices,
pub is_satisfied: bool,
}
Expand description
State for a key chord.
Fields§
§index: usize
The chord index in the chorded config.
chord: ChordIndices
The chord’s indices.
is_satisfied: bool
Whether the chord is satisfied by the pressed indices.
Trait Implementations§
Source§impl Clone for ChordState
impl Clone for ChordState
Source§fn clone(&self) -> ChordState
fn clone(&self) -> ChordState
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 Debug for ChordState
impl Debug for ChordState
Source§impl PartialEq for ChordState
impl PartialEq for ChordState
impl StructuralPartialEq for ChordState
Auto Trait Implementations§
impl Freeze for ChordState
impl RefUnwindSafe for ChordState
impl Send for ChordState
impl Sync for ChordState
impl Unpin for ChordState
impl UnwindSafe for ChordState
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