shape_core/elements/triangles/display.rs
1use super::*;
2use std::fmt::{Debug, Display, Formatter};
3
4impl Debug for TriangleIndex {
5 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
6 f.debug_tuple("MeshTriangleIndex").field(&self.a).field(&self.b).field(&self.c).finish()
7 }
8}
9
10impl Display for TriangleIndex {
11 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
12 f.debug_tuple("").field(&self.a).field(&self.b).field(&self.c).finish()
13 }
14}