1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::*;
use std::fmt;
impl<T: fmt::Debug, const ROWS: usize, const COLUMNS: usize> fmt::Display
for MatrixSxS<T, ROWS, COLUMNS>
where
[(); ROWS * COLUMNS]:,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", self.data)
}
}
impl<T: fmt::Debug> fmt::Display for MatrixDxD<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", self.data)
}
}
impl<T: fmt::Debug, const ROWS: usize> fmt::Display for MatrixSxD<T, ROWS> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", self.data)
}
}
impl<T: fmt::Debug, const COLUMNS: usize> fmt::Display for MatrixDxS<T, COLUMNS> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{:?}", self.data)
}
}