[][src]Struct polyphony::simple_event_dispatching::SimpleEventDispatcher

pub struct SimpleEventDispatcher;

A simple event dispatcher.

Voice assignment is done in a very simple way. A new voice is assigned in the following way:

  • if there is an idle voice, the first idle voice is used
  • otherwise, if there is a voice releasing, the first releasing voice is used,
  • otherwise, the first voice is used.

Trait Implementations

impl Clone for SimpleEventDispatcher[src]

impl Copy for SimpleEventDispatcher[src]

impl Debug for SimpleEventDispatcher[src]

impl Eq for SimpleEventDispatcher[src]

impl PartialEq<SimpleEventDispatcher> for SimpleEventDispatcher[src]

impl StructuralEq for SimpleEventDispatcher[src]

impl StructuralPartialEq for SimpleEventDispatcher[src]

impl<V, Identifier> VoiceAssignerHelper<V, Identifier> for SimpleEventDispatcher where
    V: Voice<SimpleVoiceState<Identifier>>,
    Identifier: Copy + Eq
[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.

impl<Voice, Identifier, T> VoiceAssigner<Voice, Identifier> for T where
    T: VoiceAssignerHelper<Voice, Identifier>, 
[src]