kvarn::prelude::utils

Struct CleanDebug

source
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>
where T: Display + ?Sized,

source

pub fn new(value: &'a T) -> CleanDebug<'a, T>

Creates a new wrapper around value with Debug implement