pub enum MidiFormat {
SingleTrack,
MultipleTrack(u16),
MultipleSong(u16),
}
Expand description
Represents the different formats of a midi file
The parameter is the number of tracks
Variants§
SingleTrack
There is only 1 track
MultipleTrack(u16)
There are multiple tracks to be played concurrently
MultipleSong(u16)
There are multiple songs that can be played in any order/combination (e.g. a set of sequences for a drum machine)
Implementations§
Trait Implementations§
Source§impl Clone for MidiFormat
impl Clone for MidiFormat
Source§fn clone(&self) -> MidiFormat
fn clone(&self) -> MidiFormat
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 MidiFormat
impl Debug for MidiFormat
Source§impl PartialEq for MidiFormat
impl PartialEq for MidiFormat
impl Copy for MidiFormat
impl StructuralPartialEq for MidiFormat
Auto Trait Implementations§
impl Freeze for MidiFormat
impl RefUnwindSafe for MidiFormat
impl Send for MidiFormat
impl Sync for MidiFormat
impl Unpin for MidiFormat
impl UnwindSafe for MidiFormat
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