pub enum IntervalDirection {
Descending = -1,
Oblique = 0,
Ascending = 1,
}Expand description
Direction of a directed interval.
Variants§
Descending = -1
The end pitch is lower than the start pitch.
Oblique = 0
The interval is an oblique unison.
Ascending = 1
The end pitch is higher than the start pitch.
Implementations§
Trait Implementations§
Source§impl Clone for IntervalDirection
impl Clone for IntervalDirection
Source§fn clone(&self) -> IntervalDirection
fn clone(&self) -> IntervalDirection
Returns a duplicate of the value. Read more
1.0.0 · 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 IntervalDirection
impl Debug for IntervalDirection
Source§impl<'de> Deserialize<'de> for IntervalDirection
impl<'de> Deserialize<'de> for IntervalDirection
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 PartialEq for IntervalDirection
impl PartialEq for IntervalDirection
Source§impl Serialize for IntervalDirection
impl Serialize for IntervalDirection
impl Copy for IntervalDirection
impl Eq for IntervalDirection
impl StructuralPartialEq for IntervalDirection
Auto Trait Implementations§
impl Freeze for IntervalDirection
impl RefUnwindSafe for IntervalDirection
impl Send for IntervalDirection
impl Sync for IntervalDirection
impl Unpin for IntervalDirection
impl UnsafeUnpin for IntervalDirection
impl UnwindSafe for IntervalDirection
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