Struct unc_primitives::utils::DisplayOption
source · pub struct DisplayOption<T>(pub Option<T>);Expand description
A wrapper around Option
Tuple Fields§
§0: Option<T>Implementations§
Trait Implementations§
source§impl<T> AsRef<Option<T>> for DisplayOption<T>
impl<T> AsRef<Option<T>> for DisplayOption<T>
source§impl<T: Display> Display for DisplayOption<T>
impl<T: Display> Display for DisplayOption<T>
Auto Trait Implementations§
impl<T> Freeze for DisplayOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for DisplayOption<T>where
T: RefUnwindSafe,
impl<T> Send for DisplayOption<T>where
T: Send,
impl<T> Sync for DisplayOption<T>where
T: Sync,
impl<T> Unpin for DisplayOption<T>where
T: Unpin,
impl<T> UnwindSafe for DisplayOption<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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