pub enum SequencerMode {
Normal,
Chain,
Song,
}
Expand description
- Normal operation mode is the default mode. In this mode, the sequencer plays the selected pattern in a loop.
- Chain mode is used to chain patterns together into a chain. The chain is played in a loop.
- Song mode is used to chain patterns together into a song. The song is played once from start to finish.
Variants§
Trait Implementations§
source§impl Clone for SequencerMode
impl Clone for SequencerMode
source§fn clone(&self) -> SequencerMode
fn clone(&self) -> SequencerMode
Returns a copy of the value. Read more
1.0.0 · 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 SequencerMode
impl Debug for SequencerMode
source§impl Default for SequencerMode
impl Default for SequencerMode
source§fn default() -> SequencerMode
fn default() -> SequencerMode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SequencerMode
impl<'de> Deserialize<'de> for SequencerMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SequencerMode> for &str
impl From<SequencerMode> for &str
source§fn from(sequencer_mode: SequencerMode) -> Self
fn from(sequencer_mode: SequencerMode) -> Self
Converts to this type from the input type.
source§impl From<SequencerMode> for u8
impl From<SequencerMode> for u8
source§fn from(sequencer_mode: SequencerMode) -> Self
fn from(sequencer_mode: SequencerMode) -> Self
Converts to this type from the input type.
source§impl Hash for SequencerMode
impl Hash for SequencerMode
source§impl Ord for SequencerMode
impl Ord for SequencerMode
source§fn cmp(&self, other: &SequencerMode) -> Ordering
fn cmp(&self, other: &SequencerMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SequencerMode
impl PartialEq for SequencerMode
source§fn eq(&self, other: &SequencerMode) -> bool
fn eq(&self, other: &SequencerMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SequencerMode
impl PartialOrd for SequencerMode
source§fn partial_cmp(&self, other: &SequencerMode) -> Option<Ordering>
fn partial_cmp(&self, other: &SequencerMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SequencerMode
impl Serialize for SequencerMode
source§impl TryFrom<&str> for SequencerMode
impl TryFrom<&str> for SequencerMode
source§impl TryFrom<u8> for SequencerMode
impl TryFrom<u8> for SequencerMode
impl Copy for SequencerMode
impl Eq for SequencerMode
impl StructuralEq for SequencerMode
impl StructuralPartialEq for SequencerMode
Auto Trait Implementations§
impl RefUnwindSafe for SequencerMode
impl Send for SequencerMode
impl Sync for SequencerMode
impl Unpin for SequencerMode
impl UnwindSafe for SequencerMode
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