Skip to main content

IntoNote

Trait IntoNote 

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

Source

const FROM_INTEGER_PITCH: bool = false

Whether this value came from an integer pitch class or MIDI-like number.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl IntoNote for &String

Source§

impl IntoNote for &str

Source§

impl IntoNote for String

Implementors§