constants.mod, and Display for CaseIdx to use it

This commit is contained in:
James Wilson
2025-08-14 10:58:02 +01:00
parent 95ea886ba7
commit 1c335e5709
6 changed files with 17 additions and 6 deletions
+6
View File
@@ -67,3 +67,9 @@ define_wrapper_type!(
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct CaseIdx(usize);
);
impl std::fmt::Display for CaseIdx {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}