Trait IntervalKind

Source
pub trait IntervalKind {
    // Required method
    fn value(&self) -> i8;

    // Provided method
    fn kind(&self) -> Intervals { ... }
}
Expand description

IntervalKind denotes objects used to explicitly define the various intervals in music theory.

Required Methods§

Source

fn value(&self) -> i8

Returns the value associated with the interval

Provided Methods§

Source

fn kind(&self) -> Intervals

Returns the interval associated with the value

Implementors§