pub fn track_idx_by_id(&self, track_id: u32) -> Option<usize> {
        self.tracks().iter().enumerate().find_map(|(idx, t)| {
            if t.track_id() == track_id {
                Some(idx)
            } else {
                None
            }
        })
    }
/// Get the track index by id.
Get the track index by id.
Get the track index by id .
pub fn track_idx_by_id(&self, track_id: u32) -> Option<usize> {
        self.tracks().iter().enumerate().find_map(|(idx, t)| {
            if t.track_id() == track_id {
                Some(idx)
            } else {
                None
            }
        })
    }
pub fn track_idx_by_id ( & self , track_id : u32 ) -> Option < usize > { self . tracks ( ) . iter ( ) . enumerate ( ) . find_map ( | ( idx , t ) | { if t . track_id ( ) == track_id { Some ( idx ) } else { None } } ) }
Get the track index by id.
Get the track index by id .
&self
track_id
u32
&self
track_id
u32