Trait klib::core::note::NoteRecreator
source · pub trait NoteRecreator {
// Required methods
fn with_named_pitch(self, named_pitch: NamedPitch) -> Self;
fn with_octave(self, octave: Octave) -> Self;
}
Expand description
A trait which allows for a Note
to be recreated with different properties.
Required Methods§
sourcefn with_named_pitch(self, named_pitch: NamedPitch) -> Self
fn with_named_pitch(self, named_pitch: NamedPitch) -> Self
Recreates this Note
with the given NamedPitch
.
sourcefn with_octave(self, octave: Octave) -> Self
fn with_octave(self, octave: Octave) -> Self
Object Safety§
This trait is not object safe.