#[non_exhaustive]pub enum MidiFileLoopType {
LoopPoint(usize),
RpgMaker,
IncredibleMachine,
FinalFantasy,
}Expand description
Specifies the type of the loop extension to use when playing back a MIDI file.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LoopPoint(usize)
Specifies the loop start point by a tick value.
RpgMaker
The RPG Maker style loop. CC #111 will be the loop start point.
IncredibleMachine
The Incredible Machine style loop. CC #110 and #111 will be the start and end points of the loop.
FinalFantasy
The Final Fantasy style loop. CC #116 and #117 will be the start and end points of the loop.
Trait Implementations§
Source§impl Clone for MidiFileLoopType
impl Clone for MidiFileLoopType
Source§fn clone(&self) -> MidiFileLoopType
fn clone(&self) -> MidiFileLoopType
Returns a duplicate 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 MidiFileLoopType
impl Debug for MidiFileLoopType
impl Copy for MidiFileLoopType
Auto Trait Implementations§
impl Freeze for MidiFileLoopType
impl RefUnwindSafe for MidiFileLoopType
impl Send for MidiFileLoopType
impl Sync for MidiFileLoopType
impl Unpin for MidiFileLoopType
impl UnwindSafe for MidiFileLoopType
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