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