use std::sync::Arc; use anyhow::Result; use ui::prelude::*; use utilities::prelude::Color; #[derive(Debug, Clone, Copy, PartialEq, PartialOrd)] pub enum BehindLeader { Time(f64), Laps(i32), } pub struct LeaderBoardEntry { id: i32, name: String, place: u8, behind: BehindLeader, time_behind_next: f64, best_lap: f64, snippet: Arc, name_label: Arc