Skip to main content

NoteRecreator

Trait 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§

Source

fn with_named_pitch(self, named_pitch: NamedPitch) -> Self

Recreates this Note with the given NamedPitch.

Source

fn with_octave(self, octave: Octave) -> Self

Recreates this Note with the given Octave.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§