pub struct Opt<W>(/* private fields */);Expand description
An optional field through W.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Opt<W>where
PhantomData<W>: Freeze,
impl<W> RefUnwindSafe for Opt<W>where
PhantomData<W>: RefUnwindSafe,
impl<W> Send for Opt<W>where
PhantomData<W>: Send,
impl<W> Sync for Opt<W>where
PhantomData<W>: Sync,
impl<W> Unpin for Opt<W>where
PhantomData<W>: Unpin,
impl<W> UnsafeUnpin for Opt<W>where
PhantomData<W>: UnsafeUnpin,
impl<W> UnwindSafe for Opt<W>where
PhantomData<W>: 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