pub struct OrNone<T>(pub Option<T>);Expand description
Formats an optional value as the value or none.
Tuple Fields§
§0: Option<T>Trait Implementations§
impl<T: Copy> Copy for OrNone<T>
Auto Trait Implementations§
impl<T> Freeze for OrNone<T>
impl<T> RefUnwindSafe for OrNone<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for OrNone<T>
impl<T> Sync for OrNone<T>
impl<T> Unpin for OrNone<T>
impl<T> UnsafeUnpin for OrNone<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for OrNone<T>where
Option<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