pub enum Matching {
Exact,
Transposed,
Transformed,
Multiset,
TransposedMultiset,
TransposedInvertedMultiset,
}Expand description
How a SegmentMatcher tells a run of pitch classes the same as one
searched for.
Variants§
Exact
The same pitch classes in the same order: music21’s
SegmentMatcher.
Transposed
The same intervals in the same order: music21’s
TransposedSegmentMatcher.
Transformed
A transposition, inversion, retrograde or retrograde inversion:
music21’s TransformedSegmentMatcher.
Multiset
The same pitch classes in any order: music21’s
MultisetSegmentMatcher.
TransposedMultiset
The same pitch classes in any order, transposed: music21’s
TransposedMultisetMatcher.
TransposedInvertedMultiset
The same pitch classes in any order, transposed or inverted:
music21’s TransposedInvertedMultisetMatcher.
Implementations§
Source§impl Matching
impl Matching
Sourcepub fn equal_segments(
self,
search: &[IntegerType],
subset: &[IntegerType],
) -> bool
pub fn equal_segments( self, search: &[IntegerType], subset: &[IntegerType], ) -> bool
Whether a run’s pitch classes are the segment searched for, as
this matcher tells the two the same: music21’s equalSubset, given
the classes each reading was made from rather than the readings.
The order is music21’s: the segment searched for first, which is the one a transposing matcher moves.
Trait Implementations§
impl Copy for Matching
impl Eq for Matching
impl StructuralPartialEq for Matching
Auto Trait Implementations§
impl Forget for Matching
impl Freeze for Matching
impl RefUnwindSafe for Matching
impl Send for Matching
impl Sync for Matching
impl Unpin for Matching
impl UnsafeUnpin for Matching
impl UnwindSafe for Matching
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
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> ⓘ
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> ⓘ
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