pub enum DegreeComparison {
PitchClass,
Name,
Step,
}Expand description
How a pitch is matched against a scale degree: music21’s
comparisonAttribute.
Variants§
PitchClass
By sounding note, so E# matches the F of C major.
Name
By written note, so it does not.
Step
By letter alone, so an E- matches the E of C major.
Trait Implementations§
Source§impl Clone for DegreeComparison
impl Clone for DegreeComparison
Source§fn clone(&self) -> DegreeComparison
fn clone(&self) -> DegreeComparison
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DegreeComparison
Source§impl Debug for DegreeComparison
impl Debug for DegreeComparison
Source§impl<'de> Deserialize<'de> for DegreeComparison
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DegreeComparison
Available on crate feature
serde only.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
impl Eq for DegreeComparison
Source§impl Hash for DegreeComparison
impl Hash for DegreeComparison
Source§impl PartialEq for DegreeComparison
impl PartialEq for DegreeComparison
Source§impl Serialize for DegreeComparison
Available on crate feature serde only.
impl Serialize for DegreeComparison
Available on crate feature
serde only.impl StructuralPartialEq for DegreeComparison
Auto Trait Implementations§
impl Freeze for DegreeComparison
impl RefUnwindSafe for DegreeComparison
impl Send for DegreeComparison
impl Sync for DegreeComparison
impl Unpin for DegreeComparison
impl UnsafeUnpin for DegreeComparison
impl UnwindSafe for DegreeComparison
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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