mirror of
https://github.com/bend-n/fimg.git
synced 2024-12-22 02:28:19 -06:00
whoops
This commit is contained in:
parent
5100cc28e3
commit
6a26b785cd
11
src/term.rs
11
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<N>,
|
||||
[u8; 4]: PFrom<N>,
|
||||
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<N>,
|
||||
|
|
Loading…
Reference in a new issue