pub struct OptionFunctor<T>(pub Option<T>);Expand description
OptionFunctor provides a functor over Option values.
Tuple Fields§
§0: Option<T>Implementations§
Auto Trait Implementations§
impl<T> Freeze for OptionFunctor<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionFunctor<T>where
T: RefUnwindSafe,
impl<T> Send for OptionFunctor<T>where
T: Send,
impl<T> Sync for OptionFunctor<T>where
T: Sync,
impl<T> Unpin for OptionFunctor<T>where
T: Unpin,
impl<T> UnsafeUnpin for OptionFunctor<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OptionFunctor<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