debugging

A collection of 2 posts

Apr 12, 2018

Debug implementation

Debug implementation

In Rust, Debug is a trait that allows us to inspect the state of a struct by printing the struct to std out or, you know, whatever. Usually, we just derive debug implementations, but there are cases when that's not possible or even desirable. Here's a real world example.