[][src]Enum helgoboss_midi::FuzzyMessageSuperType

pub enum FuzzyMessageSuperType {
    Channel,
    SystemCommon,
    SystemRealTime,
    SystemExclusive,
}

Like MessageSuperType but without distinction between different channel messages.

This enum exists because in some cases it can be helpful to obtain the message super type just from a ShortMessageType - at least to some degree. In order to accurately determine the MessageSuperType, it's necessary to have the actual MIDI message at hand, because the distinction between channel voice and channel mode messages depends on the controller number.

Variants

Channel
SystemCommon
SystemRealTime
SystemExclusive

Implementations

impl FuzzyMessageSuperType[src]

pub fn main_category(&self) -> MessageMainCategory[src]

Returns the corresponding main category.

Trait Implementations

impl Clone for FuzzyMessageSuperType[src]

impl Copy for FuzzyMessageSuperType[src]

impl Debug for FuzzyMessageSuperType[src]

impl Eq for FuzzyMessageSuperType[src]

impl Hash for FuzzyMessageSuperType[src]

impl PartialEq<FuzzyMessageSuperType> for FuzzyMessageSuperType[src]

impl StructuralEq for FuzzyMessageSuperType[src]

impl StructuralPartialEq for FuzzyMessageSuperType[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.