pub struct DisplayAsDebug<T: Debug>(pub T);Expand description
A wrapper that renders Display using the inner type’s Debug implementation.
Tuple Fields§
§0: TInner value rendered with Debug for Display.
Trait Implementations§
Source§impl<T: Clone + Debug> Clone for DisplayAsDebug<T>
impl<T: Clone + Debug> Clone for DisplayAsDebug<T>
Source§fn clone(&self) -> DisplayAsDebug<T>
fn clone(&self) -> DisplayAsDebug<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Display for DisplayAsDebug<T>
impl<T: Debug> Display for DisplayAsDebug<T>
Source§impl<T: Debug> From<T> for DisplayAsDebug<T>
impl<T: Debug> From<T> for DisplayAsDebug<T>
Source§impl<T: Ord + Debug> Ord for DisplayAsDebug<T>
impl<T: Ord + Debug> Ord for DisplayAsDebug<T>
Source§fn cmp(&self, other: &DisplayAsDebug<T>) -> Ordering
fn cmp(&self, other: &DisplayAsDebug<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + Debug> PartialOrd for DisplayAsDebug<T>
impl<T: PartialOrd + Debug> PartialOrd for DisplayAsDebug<T>
impl<T: Copy + Debug> Copy for DisplayAsDebug<T>
impl<T: Eq + Debug> Eq for DisplayAsDebug<T>
impl<T: Debug> StructuralPartialEq for DisplayAsDebug<T>
Auto Trait Implementations§
impl<T> Freeze for DisplayAsDebug<T>where
T: Freeze,
impl<T> RefUnwindSafe for DisplayAsDebug<T>where
T: RefUnwindSafe,
impl<T> Send for DisplayAsDebug<T>where
T: Send,
impl<T> Sync for DisplayAsDebug<T>where
T: Sync,
impl<T> Unpin for DisplayAsDebug<T>where
T: Unpin,
impl<T> UnwindSafe for DisplayAsDebug<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