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§
Provided Methods§
Sourcefn pitch_class(&self) -> Pitches
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.