pub enum ParallelRequirement {
Wide(IntegerType),
Named(Box<Interval>),
}Expand description
What a caller may ask of a parallel motion.
music21 takes either: a number is how wide the interval must be, whatever
it is spelled — 3 for parallel thirds of any quality — and an interval
is the interval itself, spelling and all.
Variants§
Wide(IntegerType)
However many steps wide, counted inclusively.
Named(Box<Interval>)
This interval exactly.
Trait Implementations§
Source§impl Clone for ParallelRequirement
impl Clone for ParallelRequirement
Source§fn clone(&self) -> ParallelRequirement
fn clone(&self) -> ParallelRequirement
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 ParallelRequirement
impl Debug for ParallelRequirement
Source§impl From<Interval> for ParallelRequirement
impl From<Interval> for ParallelRequirement
Source§impl From<i32> for ParallelRequirement
impl From<i32> for ParallelRequirement
Source§fn from(steps: IntegerType) -> Self
fn from(steps: IntegerType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParallelRequirement
impl PartialEq for ParallelRequirement
impl StructuralPartialEq for ParallelRequirement
Auto Trait Implementations§
impl Freeze for ParallelRequirement
impl RefUnwindSafe for ParallelRequirement
impl Send for ParallelRequirement
impl Sync for ParallelRequirement
impl Unpin for ParallelRequirement
impl UnsafeUnpin for ParallelRequirement
impl UnwindSafe for ParallelRequirement
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