use std::time::Instant; use saunter::derive::Interpolate; use saunter::snapshot::Snapshot; #[derive(Debug, Interpolate)] pub struct NoWindowSnapshot { pub time: Instant, pub val: f32, } impl Snapshot for NoWindowSnapshot { fn get_time(&self) -> &Instant { &self.time } } impl NoWindowSnapshot { pub fn new(time: Instant, val: f32) -> Self { Self { time, val } } }