pub enum MotionType {
AntiParallel,
Contrary,
NoMotion,
Oblique,
Parallel,
Similar,
}Expand description
How two voices move relative to each other.
Variants§
AntiParallel
Contrary motion between two spellings of the same simple interval, such as a fifth opening out to a twelfth. Only reported when asked for.
Contrary
The voices move in opposite directions.
NoMotion
Neither voice moves.
Oblique
One voice holds while the other moves.
Parallel
The voices move the same way and keep the same generic interval.
Similar
The voices move the same way through different intervals.
Implementations§
Trait Implementations§
Source§impl Clone for MotionType
impl Clone for MotionType
Source§fn clone(&self) -> MotionType
fn clone(&self) -> MotionType
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 MotionType
Source§impl Debug for MotionType
impl Debug for MotionType
Source§impl<'de> Deserialize<'de> for MotionType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MotionType
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
Source§impl Display for MotionType
impl Display for MotionType
impl Eq for MotionType
Source§impl Hash for MotionType
impl Hash for MotionType
Source§impl PartialEq for MotionType
impl PartialEq for MotionType
Source§impl Serialize for MotionType
Available on crate feature serde only.
impl Serialize for MotionType
Available on crate feature
serde only.impl StructuralPartialEq for MotionType
Auto Trait Implementations§
impl Freeze for MotionType
impl RefUnwindSafe for MotionType
impl Send for MotionType
impl Sync for MotionType
impl Unpin for MotionType
impl UnsafeUnpin for MotionType
impl UnwindSafe for MotionType
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