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,