pub enum VoicePhase {
Attack,
Sustain,
Release,
Done,
}Expand description
The phase of a voice’s lifecycle.
Variants§
Attack
Key is held — playing forward.
Sustain
Sustain loop active.
Release
Key released — playing release tail.
Done
Voice is done — can be recycled.
Trait Implementations§
Source§impl Clone for VoicePhase
impl Clone for VoicePhase
Source§fn clone(&self) -> VoicePhase
fn clone(&self) -> VoicePhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoicePhase
impl Debug for VoicePhase
Source§impl PartialEq for VoicePhase
impl PartialEq for VoicePhase
Source§fn eq(&self, other: &VoicePhase) -> bool
fn eq(&self, other: &VoicePhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VoicePhase
Auto Trait Implementations§
impl Freeze for VoicePhase
impl RefUnwindSafe for VoicePhase
impl Send for VoicePhase
impl Sync for VoicePhase
impl Unpin for VoicePhase
impl UnsafeUnpin for VoicePhase
impl UnwindSafe for VoicePhase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more