Trait music_theory::theory::traits::ModeTrait

source ·
pub trait ModeTrait {
    // Required methods
    fn next_mode_mut(&mut self);
    fn next_mode(self) -> Self;
    fn mode(self, mode: Mode) -> Self;
}
Expand description

Types that have modes (rotations of scales).

Required Methods§

source

fn next_mode_mut(&mut self)

Modify the value so it turns into it’s next mode.

source

fn next_mode(self) -> Self

Take the value and give back it’s next mode.

source

fn mode(self, mode: Mode) -> Self

Take the value and give back it’s Nth mode.

Object Safety§

This trait is not object safe.

Implementors§