pub struct ChordIndices { /* private fields */ }
Expand description
Chords are defined by an (unordered) set of keymap indices into the keymap.
Implementations§
Source§impl ChordIndices
impl ChordIndices
Sourcepub const fn from_slice(indices: &[u16]) -> ChordIndices
pub const fn from_slice(indices: &[u16]) -> ChordIndices
Constructs a new ChordIndices value from the given slice.
The given slice must be less than MAX_CHORD_SIZE in length.
Sourcepub fn is_satisfied_by(&self, indices: &[u16]) -> bool
pub fn is_satisfied_by(&self, indices: &[u16]) -> bool
Whether the chord is satisfied by the given indices.
Trait Implementations§
Source§impl Clone for ChordIndices
impl Clone for ChordIndices
Source§fn clone(&self) -> ChordIndices
fn clone(&self) -> ChordIndices
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 ChordIndices
impl Debug for ChordIndices
Source§impl<'de> Deserialize<'de> for ChordIndices
impl<'de> Deserialize<'de> for ChordIndices
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
Source§impl From<Vec<u16, MAX_CHORD_SIZE>> for ChordIndices
impl From<Vec<u16, MAX_CHORD_SIZE>> for ChordIndices
Source§impl PartialEq for ChordIndices
impl PartialEq for ChordIndices
impl Copy for ChordIndices
impl StructuralPartialEq for ChordIndices
Auto Trait Implementations§
impl Freeze for ChordIndices
impl RefUnwindSafe for ChordIndices
impl Send for ChordIndices
impl Sync for ChordIndices
impl Unpin for ChordIndices
impl UnwindSafe for ChordIndices
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