Struct rsynth::event::Indexed[][src]

pub struct Indexed<E> {
    pub index: usize,
    pub event: E,
}

Indexed<E> adds an index to an event of type E. The index typically corresponds to the index of the channel.

Fields

index: usize

The index of the event.

event: E

The underlying event.

Implementations

impl<E> Indexed<E>[src]

pub fn new(index: usize, event: E) -> Self[src]

Trait Implementations

impl<E> AsMut<E> for Indexed<E>[src]

impl<E> AsRef<E> for Indexed<E>[src]

impl<E> Clone for Indexed<E> where
    E: Clone
[src]

impl<E> Copy for Indexed<E> where
    E: Copy
[src]

impl<E: Debug> Debug for Indexed<E>[src]

impl<E: Eq> Eq for Indexed<E>[src]

impl<'c, 'mp, 'mw> EventHandler<Indexed<Timed<RawMidiEvent>>> for JackHost<'c, 'mp, 'mw>[src]

impl<'c, 'mp, 'mw, 'e> EventHandler<Indexed<Timed<SysExEvent<'e>>>> for JackHost<'c, 'mp, 'mw>[src]

impl<E: PartialEq> PartialEq<Indexed<E>> for Indexed<E>[src]

impl<E> StructuralEq for Indexed<E>[src]

impl<E> StructuralPartialEq for Indexed<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for Indexed<E> where
    E: RefUnwindSafe

impl<E> Send for Indexed<E> where
    E: Send

impl<E> Sync for Indexed<E> where
    E: Sync

impl<E> Unpin for Indexed<E> where
    E: Unpin

impl<E> UnwindSafe for Indexed<E> where
    E: UnwindSafe

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<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

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

impl<S> FromSample<S> for S

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> ToSample<U> for T where
    U: FromSample<T>, 

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.