pub struct MidiTrackInfo {
pub index: usize,
pub name: Option<String>,
pub channels: Vec<u8>,
pub programs: Vec<u8>,
}Expand description
MIDI track metadata extracted from the loaded file.
Fields§
§index: usizeZero-based track index.
name: Option<String>Optional track name from MIDI meta events.
channels: Vec<u8>Distinct MIDI channels used by this track (1-based, range 1..=16).
programs: Vec<u8>Distinct MIDI program numbers used by this track.
Trait Implementations§
Source§impl Clone for MidiTrackInfo
impl Clone for MidiTrackInfo
Source§fn clone(&self) -> MidiTrackInfo
fn clone(&self) -> MidiTrackInfo
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 MidiTrackInfo
impl Debug for MidiTrackInfo
Source§impl PartialEq for MidiTrackInfo
impl PartialEq for MidiTrackInfo
impl Eq for MidiTrackInfo
impl StructuralPartialEq for MidiTrackInfo
Auto Trait Implementations§
impl Freeze for MidiTrackInfo
impl RefUnwindSafe for MidiTrackInfo
impl Send for MidiTrackInfo
impl Sync for MidiTrackInfo
impl Unpin for MidiTrackInfo
impl UnsafeUnpin for MidiTrackInfo
impl UnwindSafe for MidiTrackInfo
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