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<'a, T> Debug for CleanDebug<'a, T>
impl<'a, T> Debug for CleanDebug<'a, T>
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for CleanDebug<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for CleanDebug<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Sync for CleanDebug<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Unpin for CleanDebug<'a, T>
impl<'a, T: ?Sized> UnwindSafe for CleanDebug<'a, T>where
T: RefUnwindSafe,
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 more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§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
source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more