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§
Trait Implementations§
source§impl<T> Debug for CleanDebug<'_, T>
impl<T> Debug for CleanDebug<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CleanDebug<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for CleanDebug<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for CleanDebug<'a, T>
impl<'a, T> Sync for CleanDebug<'a, T>
impl<'a, T> Unpin for CleanDebug<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for CleanDebug<'a, T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
source§impl<T> AsCleanDebug for Twhere
T: Display,
impl<T> AsCleanDebug for Twhere
T: Display,
source§fn as_clean(&self) -> CleanDebug<'_, Self>where
Self: Display,
fn as_clean(&self) -> CleanDebug<'_, Self>where
Self: Display,
Get a
CleanDebug
for Self. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more