Module escaped_display

Source
Expand description

Trait and temporary wrapper around strings and paths to Display them escaped.

The motivation is to avoid using {:?} in format strings–those are dangerous in that this is just really “the debug” format, and if e.g. a Path is replaced with a complex type, the complex’ type internals are dumped instead of just an escaped path. I’ve run into this enough times now to be tired of it.

Structs§

DebugForDisplay

Traits§

AsEscapedString