pub struct GuitarStringFingering {
pub string_number: u8,
pub string_name: String,
pub open_pitch_space: IntegerType,
pub open_pitch_class: u8,
pub fret: Option<u8>,
pub finger: Option<u8>,
pub pitch_space: Option<IntegerType>,
pub pitch_class: Option<u8>,
}Expand description
One string in a suggested guitar fingering.
Fields§
§string_number: u8Guitar string number, where the lowest string has the highest number.
string_name: StringOpen-string pitch name, including octave.
open_pitch_space: IntegerTypeOpen-string pitch space, where C4 is 60.
open_pitch_class: u8Open-string pitch class.
fret: Option<u8>Fret to play, or None for a muted string.
finger: Option<u8>Suggested fretting finger, where 1 is index and 4 is pinky.
Open and muted strings do not use a finger.
pitch_space: Option<IntegerType>Sounding pitch space, or None for a muted string.
pitch_class: Option<u8>Sounding pitch class, or None for a muted string.
Trait Implementations§
Source§impl Clone for GuitarStringFingering
impl Clone for GuitarStringFingering
Source§fn clone(&self) -> GuitarStringFingering
fn clone(&self) -> GuitarStringFingering
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 GuitarStringFingering
impl Debug for GuitarStringFingering
Source§impl<'de> Deserialize<'de> for GuitarStringFingering
impl<'de> Deserialize<'de> for GuitarStringFingering
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 PartialEq for GuitarStringFingering
impl PartialEq for GuitarStringFingering
Source§impl Serialize for GuitarStringFingering
impl Serialize for GuitarStringFingering
impl Eq for GuitarStringFingering
impl StructuralPartialEq for GuitarStringFingering
Auto Trait Implementations§
impl Freeze for GuitarStringFingering
impl RefUnwindSafe for GuitarStringFingering
impl Send for GuitarStringFingering
impl Sync for GuitarStringFingering
impl Unpin for GuitarStringFingering
impl UnsafeUnpin for GuitarStringFingering
impl UnwindSafe for GuitarStringFingering
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more