mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Serde feature: Add serde derives to input related structs (#4100)
We plan to store input data for creating automated tests, hence the need for more serde derives on input related structs. --------- Co-authored-by: Georg Weisert <georg.weisert@freshx.de>
This commit is contained in:
@@ -16,6 +16,7 @@ use std::collections::VecDeque;
|
||||
/// or for smoothed velocity (e.g. mouse pointer speed).
|
||||
/// All times are in seconds.
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct History<T> {
|
||||
/// In elements, i.e. of `values.len()`.
|
||||
/// The length is initially zero, but once past `min_len` will not shrink below it.
|
||||
|
||||
Reference in New Issue
Block a user