pub struct CleanDebug<'a, T>(/* private fields */)
where
T: Display + ?Sized;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> CleanDebug<'a, T>
impl<'a, T> CleanDebug<'a, T>
sourcepub fn new(value: &'a T) -> CleanDebug<'a, T>
pub fn new(value: &'a T) -> CleanDebug<'a, T>
Creates a new wrapper around value with Debug implement