pub enum VoiceAllocation {
Each(usize),
Groups(Vec<Vec<usize>>),
}Expand description
Which parts Stream::parts_to_voices puts together as the voices of
one part: music21’s voiceAllocation.
Variants§
Each(usize)
Parts taken in order, this many to a part, the last part taking what is left.
Groups(Vec<Vec<usize>>)
The parts, by index, of each new part in turn.
Trait Implementations§
Source§impl Clone for VoiceAllocation
impl Clone for VoiceAllocation
Source§impl Debug for VoiceAllocation
impl Debug for VoiceAllocation
Source§impl Default for VoiceAllocation
impl Default for VoiceAllocation
impl Eq for VoiceAllocation
Source§impl PartialEq for VoiceAllocation
impl PartialEq for VoiceAllocation
impl StructuralPartialEq for VoiceAllocation
Auto Trait Implementations§
impl Freeze for VoiceAllocation
impl RefUnwindSafe for VoiceAllocation
impl Send for VoiceAllocation
impl Sync for VoiceAllocation
impl Unpin for VoiceAllocation
impl UnsafeUnpin for VoiceAllocation
impl UnwindSafe for VoiceAllocation
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