IntoTimeline

Trait IntoTimeline 

Source
pub trait IntoTimeline<'a> {
    type IntoIter: Iterator<Item = TimelineData>
       where Self: 'a;

    // Required method
    fn timeline(&'a self) -> Self::IntoIter;
}
Expand description

Quickly transform a structure into one or more events that are part of a timeline

impl<'a> IntoTimeline<'a> for PrefetchFile {
    fn timeline(&'a self) -> Self::IntoIter {
        PrefetchTimelineIterator {
            prefetch : self,
            time_pos : 0
        }
    }
 
    type IntoIter = PrefetchTimelineIterator<'a> where Self: 'a;
}

Required Associated Types§

Source

type IntoIter: Iterator<Item = TimelineData> where Self: 'a

Required Methods§

Source

fn timeline(&'a self) -> Self::IntoIter

Implementors§