#[repr(transparent)]pub struct DisplayFromDebug<T: Debug>(pub T);Expand description
Provides Display formatting by using the result of invoking Debug formatting.
Tuple Fields§
§0: TImplementations§
Source§impl<T: Debug> DisplayFromDebug<T>
impl<T: Debug> DisplayFromDebug<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the adapter and returns the wrapped value.
Trait Implementations§
Source§impl<T: Debug> Display for DisplayFromDebug<T>
impl<T: Debug> Display for DisplayFromDebug<T>
Auto Trait Implementations§
impl<T> Freeze for DisplayFromDebug<T>where
T: Freeze,
impl<T> RefUnwindSafe for DisplayFromDebug<T>where
T: RefUnwindSafe,
impl<T> Send for DisplayFromDebug<T>where
T: Send,
impl<T> Sync for DisplayFromDebug<T>where
T: Sync,
impl<T> Unpin for DisplayFromDebug<T>where
T: Unpin,
impl<T> UnsafeUnpin for DisplayFromDebug<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DisplayFromDebug<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