pub trait Semitone {
// Required method
fn semitone() -> Self;
// Provided method
fn is_semitone(&self) -> bool
where Self: Sized + PartialEq { ... }
}Expand description
Required Methods§
Provided Methods§
Sourcefn is_semitone(&self) -> bool
fn is_semitone(&self) -> bool
returns true if the caller’s value is equivalent to a single semitone.
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.