A replay can present a global stream or focus on one named history. This program models the filtered view as ordinary arrays.

Program

Play the program to choose a view and see its color and event count stay aligned.

filtered_history_replay_rust.rs
fn main() {
    let view_index: usize = ;
    let views = ["main", "worker", "io"];
    let colors = ["blue", "green", "orange"];
    let event_counts = [4, 3, 2];
    let view = views[view_index - 1];
    let color = colors[view_index - 1];
    let count = event_counts[view_index - 1];
    println!("{view}:{color}:{count}");
}
fn main() {
    let view_index: usize = ;
    let views = ["main", "worker", "io"];
    let colors = ["blue", "green", "orange"];
    let event_counts = [4, 3, 2];
    let view = views[view_index - 1];
    let color = colors[view_index - 1];
    let count = event_counts[view_index - 1];
    println!("{view}:{color}:{count}");
}
fn main() {
    let view_index: usize = ;
    let views = ["main", "worker", "io"];
    let colors = ["blue", "green", "orange"];
    let event_counts = [4, 3, 2];
    let view = views[view_index - 1];
    let color = colors[view_index - 1];
    let count = event_counts[view_index - 1];
    println!("{view}:{color}:{count}");
}
history Each view name stands for one replay history.
stable color The color label is kept beside the selected history.
filtered count The event count helps verify which history is active.