pub struct MessageDisplay<'a, T: MessageRead + ?Sized>(pub &'a T);
Expand description
Provides an implementation of core::fmt::Debug
and core::fmt::Display
for
any type implementing MessageRead
.
Tuple Fields§
§0: &'a T
Trait Implementations§
Source§impl<'a, T: Debug + MessageRead + ?Sized> Debug for MessageDisplay<'a, T>
impl<'a, T: Debug + MessageRead + ?Sized> Debug for MessageDisplay<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MessageDisplay<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for MessageDisplay<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for MessageDisplay<'a, T>
impl<'a, T> Sync for MessageDisplay<'a, T>
impl<'a, T> Unpin for MessageDisplay<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for MessageDisplay<'a, T>where
T: RefUnwindSafe + ?Sized,
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