Trait Notable

Source
pub trait Notable:
    Copy
    + Sized
    + Display {
    // Required method
    fn pitch(&self) -> Pitch;

    // Provided method
    fn pitch_class(&self) -> Pitches { ... }
}
Expand description

Notable is used to describe objects capable of being represented as a pitch

Required Methods§

Source

fn pitch(&self) -> Pitch

Find the modular index of the given pitch

Provided Methods§

Source

fn pitch_class(&self) -> Pitches

Classify the pitch into a pitch class

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§