[][src]Trait polyphony::EventDispatchClassifier

pub trait EventDispatchClassifier<Event> {
    type VoiceIdentifier: Eq + Copy;
    fn classify(
        &self,
        event: &Event
    ) -> EventDispatchClass<Self::VoiceIdentifier>; }

Determine to what voices the event should be dispatched.

Associated Types

type VoiceIdentifier: Eq + Copy

The identifier used to identify a specific voice.

Loading content...

Required methods

fn classify(&self, event: &Event) -> EventDispatchClass<Self::VoiceIdentifier>

Classify how the event should be dispatched.

Loading content...

Implementors

Loading content...