Expand description


Small collection of simple functions to make debugging easier. Nothing specular but stuff I don’t want to have write repeatedly for each project. Doesn’t contain any production ready code. It’s mostly workarounds that you can use during debugging. For example it allows you to compare for equality two types that do not support Eq but do support Debug. It accomplishes this by comparing their debug output. This is terribly inefficient and only works if the debug output includes the part of the type you are interested in checking if it is the same. While this is not suitable for production, this allows you to quickly check for equality when debugging a type that only implements Debug but not Eq.


All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy’s repo.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


  • The 8 standard colors.


  • Useful if the types you are debugging do not implement Eq but you want to know if they are equal
  • Prints second if the debug output is not the same as that of first. Intended usage is to print values in a loop that don’t often change. Returns true if values are the same and nothing was printed. Otherwise it prints and returns false.