impl Debug for Relation

main
copygirl 2 months ago
parent 5ace8a2b7b
commit 0cd79755d0
  1. 9
      src/ecs/relation.rs

@ -133,3 +133,12 @@ impl std::hash::Hash for Relation {
self.to_bits().hash(state);
}
}
impl std::fmt::Debug for Relation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Relation")
.field("target", &self.target)
.field("kind", &self.kind())
.finish()
}
}

Loading…
Cancel
Save