pub struct MotionRules {
pub forbid_parallel_perfects: bool,
pub forbid_direct_perfects: bool,
pub leap_threshold: u8,
}Expand description
Relative-motion policy.
Fields§
§forbid_parallel_perfects: boolReject similar motion between repeated perfect interval classes.
forbid_direct_perfects: boolReject similar motion into a perfect interval when either voice leaps.
leap_threshold: u8Semitone distance above which a voice movement is a leap.
Trait Implementations§
Source§impl Clone for MotionRules
impl Clone for MotionRules
Source§fn clone(&self) -> MotionRules
fn clone(&self) -> MotionRules
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 MotionRules
impl Debug for MotionRules
impl Eq for MotionRules
Source§impl PartialEq for MotionRules
impl PartialEq for MotionRules
impl StructuralPartialEq for MotionRules
Auto Trait Implementations§
impl Freeze for MotionRules
impl RefUnwindSafe for MotionRules
impl Send for MotionRules
impl Sync for MotionRules
impl Unpin for MotionRules
impl UnsafeUnpin for MotionRules
impl UnwindSafe for MotionRules
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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