pub trait IntoNote {
const FROM_INTEGER_PITCH: bool = false;
// Required method
fn try_into_note(self) -> Result<Note>;
}Expand description
Converts a single note-like value into a Note.
This is useful when constructing vectors or other collections that are
later passed to APIs such as Chord::new.
Provided Associated Constants§
Sourceconst FROM_INTEGER_PITCH: bool = false
const FROM_INTEGER_PITCH: bool = false
Whether this value came from an integer pitch class or MIDI-like number.
Required Methods§
Sourcefn try_into_note(self) -> Result<Note>
fn try_into_note(self) -> Result<Note>
Converts the value into a note.
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.