PitchClass

Trait PitchClass 

Source
pub trait PitchClass:
    'static
    + Send
    + Sized
    + Sync
    + Debug
    + Display {
    // Required methods
    fn new() -> Self;
    fn index(&self) -> usize;
}
Expand description

The PitchClass trait establishes an interface to defining pitch classes.

Required Methods§

Source

fn new() -> Self

Source

fn index(&self) -> usize

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§