[][src]Enum libatm::midi_note::ParseMIDINoteError

pub enum ParseMIDINoteError {
    InvalidNoteFormat {
        input: String,
    },
    InvalidOctave(ParseIntError),
    UnknownNoteType(ParseMIDINoteTypeError),
}

Error type for parsing MIDINote from &str

Credit to @ldesgoui for the suggestion.

Variants

InvalidNoteFormat

Fields of InvalidNoteFormat

input: String
InvalidOctave(ParseIntError)
UnknownNoteType(ParseMIDINoteTypeError)

Trait Implementations

impl Debug for ParseMIDINoteError[src]

impl Display for ParseMIDINoteError[src]

impl Error for ParseMIDINoteError[src]

impl From<ParseIntError> for ParseMIDINoteError[src]

impl From<ParseMIDINoteTypeError> for ParseMIDINoteError[src]

impl PartialEq<ParseMIDINoteError> for ParseMIDINoteError[src]

impl StructuralPartialEq for ParseMIDINoteError[src]

Auto Trait Implementations

impl RefUnwindSafe for ParseMIDINoteError

impl Send for ParseMIDINoteError

impl Sync for ParseMIDINoteError

impl Unpin for ParseMIDINoteError

impl UnwindSafe for ParseMIDINoteError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.