#[repr(transparent)]pub struct OnlyDebug<T: Debug>(pub T);Expand description
Only implements the Debug formatting trait despite any other trait being implemented on T.
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OnlyDebug<T>where
T: Freeze,
impl<T> RefUnwindSafe for OnlyDebug<T>where
T: RefUnwindSafe,
impl<T> Send for OnlyDebug<T>where
T: Send,
impl<T> Sync for OnlyDebug<T>where
T: Sync,
impl<T> Unpin for OnlyDebug<T>where
T: Unpin,
impl<T> UnsafeUnpin for OnlyDebug<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OnlyDebug<T>where
T: UnwindSafe,
Blanket Implementations§
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