Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation Currently, the only way to interact with `Value`s is to record them with a visitor. In the most common case, where typed data is not needed, `Value`s are recorded with their `fmt::Debug` implementations — a visitor which does not implement the `record_${TYPE}` traits will automatically fall back to recording all primitive value types with `Debug`. However, implementing a visitor requires a bit of boilerplate: an entire trait implementation has to be written, and a visitor object passed to `record`. ## Solution This branch hopes to simplify this common case by adding a `Debug` implementation to _all_ `dyn Value` trait objects. This is equivalent to a visitor that only implements `record_debug`, but requiring less boilerplate. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information