kvarn_utils

Struct CleanDebug

source
pub struct CleanDebug<'a, T: ?Sized + Display>(/* private fields */);
Expand description

Implements Debug from the Display implementation of value.

Can be used to give fields a arbitrary str without surrounding quotes, for example in fmt::DebugStruct::field.

Implementations§

source§

impl<'a, T: ?Sized + Display> CleanDebug<'a, T>

source

pub fn new(value: &'a T) -> Self

Creates a new wrapper around value with Debug implemented as Display.

Trait Implementations§

source§

impl<'a, T: ?Sized +