[−][src]Enum polyphony::VoiceAssignment
Describe to what particular voice an event should be assigned.
Variants
This event should be assigned to no particular voice (i.e.: it should simply be dropped).
This event should be assigned to all voices.
This event should be assigned to the voice with the given index
Fields of Some
index: usize
Implementations
impl VoiceAssignment
[src]
pub fn dispatch<E, F, V>(self, event: E, voices: &mut [V], action: F) where
E: Copy,
F: FnMut(&mut V, E),
[src]
E: Copy,
F: FnMut(&mut V, E),
Dispatch an action to the assigned voices.
Trait Implementations
impl Clone for VoiceAssignment
[src]
fn clone(&self) -> VoiceAssignment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VoiceAssignment
[src]
impl Debug for VoiceAssignment
[src]
impl Eq for VoiceAssignment
[src]
impl PartialEq<VoiceAssignment> for VoiceAssignment
[src]
fn eq(&self, other: &VoiceAssignment) -> bool
[src]
fn ne(&self, other: &VoiceAssignment) -> bool
[src]
impl StructuralEq for VoiceAssignment
[src]
impl StructuralPartialEq for VoiceAssignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for VoiceAssignment
impl Send for VoiceAssignment
impl Sync for VoiceAssignment
impl Unpin for VoiceAssignment
impl UnwindSafe for VoiceAssignment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,