pub enum KeyboardType {
Ansi,
Iso,
Ortho,
Colstag,
Custom(String),
}
Expand description
Some default form factors. Options are Ansi, Iso, Ortho (being 3x10 + 3 thumb keys per thumb), Colstag (being 3x10 + 3 thumb keys per thumb) and a custom option if any anything but the prior options is provided.
Variants§
Implementations§
Source§impl KeyboardType
impl KeyboardType
Sourcepub fn fingering(
&self,
named_fingering: &NamedFingering,
) -> Result<Fingering, DofError>
pub fn fingering( &self, named_fingering: &NamedFingering, ) -> Result<Fingering, DofError>
Given a known fingering from NamedFingering
, provide a Fingering
object with all keys on a board
like that specified. Will Return an error if any combination is provided that isn’t valid, like
KeyboardType::Ortho
and NamedFingering::Angle
.
Trait Implementations§
Source§impl Clone for KeyboardType
impl Clone for KeyboardType
Source§fn clone(&self) -> KeyboardType
fn clone(&self) -> KeyboardType
Returns a copy 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 KeyboardType
impl Debug for KeyboardType
Source§impl Display for KeyboardType
impl Display for KeyboardType
Source§impl FromStr for KeyboardType
impl FromStr for KeyboardType
Source§impl Hash for KeyboardType
impl Hash for KeyboardType
Source§impl PartialEq for KeyboardType
impl PartialEq for KeyboardType
Source§impl TryFrom<KeyboardType> for PhysicalKeyboard
impl TryFrom<KeyboardType> for PhysicalKeyboard
impl Eq for KeyboardType
impl StructuralPartialEq for KeyboardType
Auto Trait Implementations§
impl Freeze for KeyboardType
impl RefUnwindSafe for KeyboardType
impl Send for KeyboardType
impl Sync for KeyboardType
impl Unpin for KeyboardType
impl UnwindSafe for KeyboardType
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