Trait timely::logging::ProgressEventTimestampVec

source ·
pub trait ProgressEventTimestampVec: Debug + Any {
    // Required method
    fn iter<'a>(
        &'a self,
    ) -> Box<dyn Iterator<Item = (&'a usize, &'a usize, &'a dyn ProgressEventTimestamp, &'a i64)> + 'a>;
}
Expand description

A vector of progress updates in logs

This exists to support upcasting of the concrecte progress update vectors to dyn ProgressEventTimestamp. Doing so at the vector granularity allows us to use a single allocation for the entire vector (as opposed to a Box allocation for each dynamically typed element).

Required Methods§

source

fn iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = (&'a usize, &'a usize, &'a dyn ProgressEventTimestamp, &'a i64)> + 'a>

Iterate over the contents of the vector

Implementations on Foreign Types§

source§

impl<T: ProgressEventTimestamp> ProgressEventTimestampVec for Vec<(usize, usize, T, i64)>

source§

fn iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = (&'a usize, &'a usize, &'a dyn ProgressEventTimestamp, &'a i64)> + 'a>

Implementors§