Skip to main content

ToUniversal

Trait ToUniversal 

Source
pub trait ToUniversal {
    // Required method
    fn to_universal(self) -> Self;
}
Expand description

A trait which allows for converting a note to the same octave, but using universal Pitches.

Essentially, this would convert an F#4 into a Gb4, since Pitches prefer the flats.

Required Methods§

Source

fn to_universal(self) -> Self

Converts this note to a universal pitch.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§