pub enum VoiceLeadingMotion {
Move {
source: ExactVoiceNote,
target: ExactVoiceNote,
semitones: i64,
cost: i64,
},
Double {
source: ExactVoiceNote,
target: ExactVoiceNote,
semitones: i64,
cost: i64,
},
Enter {
target: ExactVoiceNote,
cost: i64,
},
Leave {
source: ExactVoiceNote,
cost: i64,
},
}Expand description
Identity-resolved interpretation of one generic assignment operation.
Variants§
Move
One source voice moves to one target voice.
Double
One source voice also supplies another target.
Fields
§
source: ExactVoiceNoteExact reused source note.
§
target: ExactVoiceNoteExact additional target note.
Enter
A target enters without a source.
Leave
A source leaves without a target.
Trait Implementations§
Source§impl Clone for VoiceLeadingMotion
impl Clone for VoiceLeadingMotion
Source§fn clone(&self) -> VoiceLeadingMotion
fn clone(&self) -> VoiceLeadingMotion
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 moreSource§impl Debug for VoiceLeadingMotion
impl Debug for VoiceLeadingMotion
impl Eq for VoiceLeadingMotion
Source§impl PartialEq for VoiceLeadingMotion
impl PartialEq for VoiceLeadingMotion
impl StructuralPartialEq for VoiceLeadingMotion
Auto Trait Implementations§
impl Freeze for VoiceLeadingMotion
impl RefUnwindSafe for VoiceLeadingMotion
impl Send for VoiceLeadingMotion
impl Sync for VoiceLeadingMotion
impl Unpin for VoiceLeadingMotion
impl UnsafeUnpin for VoiceLeadingMotion
impl UnwindSafe for VoiceLeadingMotion
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