From 6a26b785cd0ac8c013a8f904a33b4e6729a1a2a4 Mon Sep 17 00:00:00 2001 From: bendn Date: Mon, 11 Mar 2024 21:54:30 +0700 Subject: [PATCH] whoops --- src/term.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/term.rs b/src/term.rs index 9c95d9b..6512179 100644 --- a/src/term.rs +++ b/src/term.rs @@ -60,6 +60,17 @@ impl<'a, const N: usize> std::ops::Deref for Display<'a, N> { } } +impl<'a, const N: usize> std::fmt::Debug for Display<'a, N> +where + [u8; 3]: PFrom, + [u8; 4]: PFrom, + Image<&'a [u8], N>: kitty::Data + WritePng, +{ + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result { + self.write(f) + } +} + impl<'a, const N: usize> std::fmt::Display for Display<'a, N> where [u8; 4]: PFrom,