pub struct GuitarTuningString {
pub name: String,
pub pitch_space: IntegerType,
pub pitch_class: u8,
}Expand description
Open-string pitch data for a guitar tuning.
Tunings are ordered from low string to high string and use concrete pitches, not just pitch classes, so fingering generation can respect octaves.
Fields§
§name: StringOpen-string pitch name, including octave.
pitch_space: IntegerTypeOpen-string pitch space, where C4 is 60.
pitch_class: u8Open-string pitch class.
Trait Implementations§
Source§impl Clone for GuitarTuningString
impl Clone for GuitarTuningString
Source§fn clone(&self) -> GuitarTuningString
fn clone(&self) -> GuitarTuningString
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 GuitarTuningString
impl Debug for GuitarTuningString
Source§impl<'de> Deserialize<'de> for GuitarTuningString
impl<'de> Deserialize<'de> for GuitarTuningString
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 GuitarTuningString
impl PartialEq for GuitarTuningString
Source§impl Serialize for GuitarTuningString
impl Serialize for GuitarTuningString
impl Eq for GuitarTuningString
impl StructuralPartialEq for GuitarTuningString
Auto Trait Implementations§
impl Freeze for GuitarTuningString
impl RefUnwindSafe for GuitarTuningString
impl Send for GuitarTuningString
impl Sync for GuitarTuningString
impl Unpin for GuitarTuningString
impl UnsafeUnpin for GuitarTuningString
impl UnwindSafe for GuitarTuningString
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