pub fn add_event(&mut self, track: usize, event: TrackEvent) {
        assert!(self.tracks.len() > track);
        let bevent = AbsoluteEvent {
            time: self.tracks[track].abs_time_from_delta(event.vtime),
            event: event.event,
        };
        match self.tracks.index_mut(track).events {
            EventContainer::Heap(ref mut heap) => {
                heap.push(bevent);
            }
            _ => { panic!("Can't add events to static tracks") }
        }
    }
/// Add a TrackEvent to the track at index `track`.  The event
/// will be added at `event.vtime` after the last event currently
/// in the builder for the track.
///
/// ## Panics
///
/// Panics if `track` is >= to the number of tracks in this builder
Add a TrackEvent to the track at index `track`.  The event
will be added at `event.vtime` after the last event currently
in the builder for the track.
Add a TrackEvent to the track at index ` track ` . The event will be added at ` event . vtime ` after the last event currently in the builder for the track .
pub fn add_event(&mut self, track: usize, event: TrackEvent) {
        assert!(self.tracks.len() > track);
        let bevent = AbsoluteEvent {
            time: self.tracks[track].abs_time_from_delta(event.vtime),
            event: event.event,
        };
        match self.tracks.index_mut(track).events {
            EventContainer::Heap(ref mut heap) => {
                heap.push(bevent);
            }
            _ => { panic!("Can't add events to static tracks") }
        }
    }
pub fn add_event ( & mut self , track : usize , event : TrackEvent ) { assert ! ( self tracks len ( ) track ) ; let bevent = AbsoluteEvent { time : self . tracks [ track ] . abs_time_from_delta ( event . vtime ) , event : event . event , } ; match self . tracks . index_mut ( track ) . events { EventContainer :: Heap ( ref mut heap ) => { heap . push ( bevent ) ; } _ => { panic ! ( " " ) } } }
Add a TrackEvent to the track at index `track`.
Add a TrackEvent to the track at index ` track ` .
&mut self
track
usize
event
TrackEvent
&mut self
track
usize
event
TrackEvent
panics
Panics if `track` is >= to the number of tracks in this builder
Panics if ` track ` is > = to the number of tracks in this builder