ffi: add debug method

This commit is contained in:
2025-11-12 15:43:48 +01:00
parent c1488507f2
commit f96e85416e
+8 -2
View File
@@ -54,6 +54,12 @@ mod ffi_point {
}
}
unsafe impl Send for Point {}
unsafe impl Sync for Point {}
// TODO: check if i can mark as thread-safe
impl std::fmt::Debug for Point {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let (x, y, z) = self.coordinates();
write!(f, "Point({}, {}, {})", x, y, z)
}
}
}