A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/text/hist.rs')
| -rw-r--r-- | src/text/hist.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/text/hist.rs b/src/text/hist.rs index ed0d571..97a05c7 100644 --- a/src/text/hist.rs +++ b/src/text/hist.rs @@ -129,7 +129,18 @@ impl Diff { } } -#[derive(serde::Deserialize, serde::Serialize, Debug)] +impl Debug for Hist { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Hist") + .field("history", &self.history.len()) + .field("redo_history", &self.redo_history.len()) + .field("last", &self.last) + .field("last_edit", &self.last_edit) + .finish() + } +} + +#[derive(serde::Deserialize, serde::Serialize)] pub struct Hist { pub history: Vec<Diff>, pub redo_history: Vec<Diff>, |