pub fn track_by_index(self, idx: u32) -> Option<Track> {
        self.complain_if_not_available();
        let media_track = Reaper::get()
            .medium_reaper()
            .get_track(Proj(self.rea_project), idx)?;
        Some(Track::new(media_track, Some(self.rea_project)))
    }
/// It's correct that this returns an Option because the index isn't a stable identifier of a
/// track. The track could move. So this should do a runtime lookup of the track and return a
/// stable MediaTrack-backed Some(Track) if a track exists at that index. 0 is first normal
/// track (master track is not obtainable via this method).
It's correct that this returns an Option because the index isn't a stable identifier of a
track. The track could move. So this should do a runtime lookup of the track and return a
stable MediaTrack-backed Some(Track) if a track exists at that index. 0 is first normal
track (master track is not obtainable via this method).
It ' s correct that this returns an Option because the index isn ' t a stable identifier of a track . The track could move . So this should do a runtime lookup of the track and return a stable MediaTrack - backed Some ( Track ) if a track exists at that index . 0 is first normal track ( master track is not obtainable via this method ) .
pub fn track_by_index(self, idx: u32) -> Option<Track> {
        self.complain_if_not_available();
        let media_track = Reaper::get()
            .medium_reaper()
            .get_track(Proj(self.rea_project), idx)?;
        Some(Track::new(media_track, Some(self.rea_project)))
    }
pub fn track_by_index ( self , idx : u32 ) -> Option < Track > { self . complain_if_not_available ( ) ; let media_track = Reaper :: get ( ) . medium_reaper ( ) . get_track ( Proj ( self . rea_project ) , idx ) ? ; Some ( Track :: new ( media_track , Some ( self . rea_project ) ) ) }
It's correct that this returns an Option because the index isn't a stable identifier of a
track.
It ' s correct that this returns an Option because the index isn ' t a stable identifier of a track .
self
idx
u32
self
idx
u32