Trait music_theory::theory::traits::ToNamedInterval
source · pub trait ToNamedInterval {
// Required methods
fn to_named_interval_try(self) -> Option<NamedInterval>;
fn to_named_interval_mod(self) -> NamedInterval;
}
Expand description
Convert to NamedInterval.
Required Methods§
sourcefn to_named_interval_try(self) -> Option<NamedInterval>
fn to_named_interval_try(self) -> Option<NamedInterval>
Try to convert to NamedInterval.
sourcefn to_named_interval_mod(self) -> NamedInterval
fn to_named_interval_mod(self) -> NamedInterval
Convert to NamedInterval with wrapping around the octaves.