pub(crate) trait AsStats<Stats> {
// Required methods
fn as_stats(&self) -> &BTreeMap<(GlobalId, Option<ReplicaId>), Stats>;
fn as_mut_stats(
&mut self,
) -> &mut BTreeMap<(GlobalId, Option<ReplicaId>), Stats>;
}
Expand description
Conversion trait to allow multiple shapes of data in spawn_statistics_scraper
.