Skip to main content

TrackedMidiSource

Trait TrackedMidiSource 

Source
pub trait TrackedMidiSource: MidiSource {
    // Required methods
    fn last_track(&self) -> usize;
    fn n_tracks(&self) -> usize;
    fn next_tracked(&mut self) -> Result<Option<TrackedMidiEvent>, Self::Err>;
}
Expand description

A MidiSource that also reports per-track membership.

Required Methods§

Source

fn last_track(&self) -> usize

Returns the track index of the most recently yielded event.

Source

fn n_tracks(&self) -> usize

Returns the total number of tracks in the stream.

Source

fn next_tracked(&mut self) -> Result<Option<TrackedMidiEvent>, Self::Err>

Returns the next event together with its track tag.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§